Fixed imprecision in the MDI tiling functionality.
This commit is contained in:
parent
e987634c44
commit
fe0a5e8895
|
@ -752,7 +752,7 @@ static void MDITile( WND* wndClient, MDICLIENTINFO *ci, WPARAM wParam )
|
||||||
int x, y, xsize, ysize;
|
int x, y, xsize, ysize;
|
||||||
int rows, columns, r, c, i;
|
int rows, columns, r, c, i;
|
||||||
|
|
||||||
rect = wndClient->rectClient;
|
GetClientRect(wndClient->hwndSelf,&rect);
|
||||||
rows = (int) sqrt((double)total);
|
rows = (int) sqrt((double)total);
|
||||||
columns = total / rows;
|
columns = total / rows;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue