Skip to content

Commit

Permalink
fix clear() geometry in the pseudo-transparent mode
Browse files Browse the repository at this point in the history
Rectangle with PS_NULL pens is 1 pixel less in the
GM_COMPATIBLE mode than in GM_ADVANCED
  • Loading branch information
dk committed Aug 28, 2024
1 parent 970acb7 commit 1d68b84
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions win32/widgets.c
Original file line number Diff line number Diff line change
Expand Up @@ -1196,6 +1196,7 @@ apc_widget_begin_paint( Handle self, Bool insideOnPaint)
SetBkMode( sys ps, GetBkMode( dc ));
SetROP2( sys ps, GetROP2( dc ));
SetStretchBltMode( sys ps, GetStretchBltMode( dc ));
SetGraphicsMode( sys ps, GetGraphicsMode( dc ));

flag = exception_block(true);
CWidget( owner)-> notify( owner, "sH", "Paint", owner);
Expand Down

0 comments on commit 1d68b84

Please sign in to comment.