Skip to content

Commit

Permalink
Merge pull request #294 from setoutsoft/icon_vert_mirror
Browse files Browse the repository at this point in the history
fix a bug that D2DBitmap::createHBitmap from CBitmap got a vertical mirror
  • Loading branch information
scheffle committed May 26, 2023
2 parents 853ce04 + d1dffa9 commit a4380b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vstgui/lib/platform/win32/direct2d/d2dbitmap.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,7 @@ HBITMAP D2DBitmap::createHBitmap ()
pbmi.bmiHeader.biPlanes = 1;
pbmi.bmiHeader.biCompression = BI_RGB;
pbmi.bmiHeader.biWidth = (LONG)size.x;
pbmi.bmiHeader.biHeight = (LONG)size.y;
pbmi.bmiHeader.biHeight = -(LONG)size.y;
pbmi.bmiHeader.biBitCount = 32;

HDC hdc = GetDC (nullptr);
Expand Down

0 comments on commit a4380b5

Please sign in to comment.