Make MyRectangle an alias of SDL_Rect

This commit is contained in:
kichikuou
2021-01-09 13:43:21 +09:00
parent 34e2d60ab4
commit e18bb6cb75
22 changed files with 181 additions and 296 deletions
+2 -5
View File
@@ -811,11 +811,8 @@ void commands2F4C() {
int eWidth = getCaliValue();
int eHeight = getCaliValue();
MyRectangle r;
MyPoint p;
r.x = eSrcX; r.y = eSrcY; r.width = eWidth; r.height = eHeight;
p.x = eX, p.y = eY;
MyRectangle r = {eSrcX, eSrcY, eWidth, eHeight};
MyPoint p = {eX, eY};
sdl_updateArea(&r, &p);