mirror of
https://github.com/ondra-novak/gates_of_skeldal.git
synced 2025-07-15 18:56:41 -04:00
fix lot of gcc reported issues
This commit is contained in:
parent
669f72908e
commit
b6c5658b48
20 changed files with 493 additions and 334 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue