Skip to content

Commit

Permalink
proper cast...
Browse files Browse the repository at this point in the history
  • Loading branch information
RamonUnch authored Feb 15, 2022
1 parent 6ab8e0d commit a195fde
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions GpMain.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -147,8 +147,8 @@ LRESULT GreenPadWnd::on_message( UINT msg, WPARAM wp, LPARAM lp )
pt.y -= wnd.top;

// Adjust rects so that it does not include SB nor scrollbars.
nc->rgrc[2].right -= Max(24L, (wnd.right-wnd.left) - nc->lppos->cx+24);
nc->rgrc[2].bottom -= Max(45L, (wnd.bottom-wnd.top) - nc->lppos->cy+45);
nc->rgrc[2].right -= Max((long)24, (long)((wnd.right-wnd.left) - nc->lppos->cx+24));
nc->rgrc[2].bottom -= Max((long)45, (long)((wnd.bottom-wnd.top) - nc->lppos->cy+45));

// Do not include caption+menu in BitBlt
nc->rgrc[1].left = nc->lppos->x + pt.x;
Expand Down

0 comments on commit a195fde

Please sign in to comment.