diff options
Diffstat (limited to 'win32/PlatWin.cxx')
| -rw-r--r-- | win32/PlatWin.cxx | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/win32/PlatWin.cxx b/win32/PlatWin.cxx index af1e41b5f..293e7d3cb 100644 --- a/win32/PlatWin.cxx +++ b/win32/PlatWin.cxx @@ -533,7 +533,7 @@ SurfaceGDI::SurfaceGDI() noexcept {  }  SurfaceGDI::SurfaceGDI(HDC hdcCompatible, int width, int height, SurfaceMode mode_, int logPixelsY_) noexcept { -	hdc = ::CreateCompatibleDC(hdc); +	hdc = ::CreateCompatibleDC(hdcCompatible);  	hdcOwned = true;  	bitmap = ::CreateCompatibleBitmap(hdcCompatible, width, height);  	bitmapOld = SelectBitmap(hdc, bitmap); | 
