Fix RTL regression after upgrading Scintilla from v4 to v5
This regression has been fixed in Scintilla project:
fa80f5d42d
/
Fix #11476, close #11516
This commit is contained in:
parent
6d929e1871
commit
a16f08468e
|
@ -565,7 +565,8 @@ SurfaceGDI::SurfaceGDI() noexcept {
|
|||
}
|
||||
|
||||
SurfaceGDI::SurfaceGDI(HDC hdcCompatible, int width, int height, SurfaceMode mode_, int logPixelsY_) noexcept {
|
||||
hdc = ::CreateCompatibleDC(hdc);
|
||||
// Fixed in Scintilla project: https://sourceforge.net/p/scintilla/code/ci/fa80f5d42d95cb95030f587b00174471d946353b/
|
||||
hdc = ::CreateCompatibleDC(hdcCompatible);
|
||||
hdcOwned = true;
|
||||
bitmap = ::CreateCompatibleBitmap(hdcCompatible, width, height);
|
||||
bitmapOld = SelectBitmap(hdc, bitmap);
|
||||
|
|
Loading…
Reference in New Issue