X-Git-Url: https://git.ucc.asn.au/?a=blobdiff_plain;f=Usermode%2FApplications%2Faxwin2_src%2FWM%2Fvideo.c;h=d17e0e595489ee9d995f5b233466f954a57bf348;hb=099719a211c90b88e59e9dc08bcf18ec1a21573d;hp=80e130249dad649d12b1f25d0ce69ad070d08238;hpb=85eb17b306404571aa39596946c87ad9bb1d9d13;p=tpg%2Facess2.git diff --git a/Usermode/Applications/axwin2_src/WM/video.c b/Usermode/Applications/axwin2_src/WM/video.c index 80e13024..d17e0e59 100644 --- a/Usermode/Applications/axwin2_src/WM/video.c +++ b/Usermode/Applications/axwin2_src/WM/video.c @@ -76,7 +76,7 @@ void Video_FillRect(short X, short Y, short W, short H, uint32_t Color) if(W < 0 || X < 0 || X >= giScreenWidth) return ; if(X + W > giScreenWidth) W = giScreenWidth - X; - if(H < 0 || H < 0 || H >= giScreenHeight) return ; + if(H < 0 || Y < 0 || Y >= giScreenHeight) return ; if(Y + H > giScreenHeight) H = giScreenHeight - Y; while( H -- )