X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;ds=inline;f=Usermode%2FApplications%2Faxwin3_src%2FWM%2Fwm.c;h=019ce5a8a19240c9f75b976e57dcbde02ac11b9e;hb=fa0ff18a7f85c7dc637aef2dfe5c1ed3dea7aee5;hp=cb59154529f45fe2756c9e036b2c4a29d054492a;hpb=507f19941f45bca7c1de783a394f56b15f10be4d;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin3_src/WM/wm.c b/Usermode/Applications/axwin3_src/WM/wm.c index cb591545..019ce5a8 100644 --- a/Usermode/Applications/axwin3_src/WM/wm.c +++ b/Usermode/Applications/axwin3_src/WM/wm.c @@ -237,6 +237,9 @@ int WM_ResizeWindow(tWindow *Window, int W, int H) if(Window->X + W < 0) Window->X = -W + 1; if(Window->Y + H < 0) Window->Y = -H + 1; + if( Window->W == W && Window->H == H ) + return 0; + Window->W = W; Window->H = H; if(Window->RenderBuffer) { @@ -368,7 +371,8 @@ void WM_int_BlitWindow(tWindow *Window) if( !(Window->Flags & WINFLAG_SHOW) ) return ; -// _SysDebug("Blit %p to (%i,%i) %ix%i", Window, Window->X, Window->Y, Window->RealW, Window->RealH); + _SysDebug("Blit %p (%p) to (%i,%i) %ix%i", Window, Window->RenderBuffer, + Window->X, Window->Y, Window->RealW, Window->RealH); Video_Blit(Window->RenderBuffer, Window->X, Window->Y, Window->RealW, Window->RealH); if( Window == gpWM_FocusedWindow && Window->CursorW ) @@ -379,7 +383,6 @@ void WM_int_BlitWindow(tWindow *Window) Window->CursorW, Window->CursorH, 0x000000 ); - } for( child = Window->FirstChild; child; child = child->NextSibling )