fix lot of gcc reported issues

This commit is contained in:
Ondřej Novák 2025-01-27 19:32:15 +01:00
parent 669f72908e
commit b6c5658b48
20 changed files with 493 additions and 334 deletions

View file

@ -320,6 +320,9 @@ void put_picture(word x,word y,void *p)
word xss=xs;
word yss=ys;
if (x > DxGetResX() || y > DxGetResY()) return;
if (x+xss>=DxGetResX()) xss=DxGetResX()-x;
if (y+yss>=DxGetResY()) yss=DxGetResY()-y;
@ -387,6 +390,7 @@ void get_picture(word x,word y,word xs,word ys,void *p)
word *data=p;
word xss=xs;
word yss=ys;
if (x > DxGetResX() || y > DxGetResY()) return;
if (x+xss>=DxGetResX()) xss=DxGetResX()-x;
if (y+yss>=DxGetResY()) yss=DxGetResY()-y;