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:
Don Ho 2022-04-10 17:01:44 +02:00
parent 6d929e1871
commit a16f08468e
1 changed files with 2 additions and 1 deletions

View File

@ -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);