all repos — mgba @ cffff67c4989c391ea30f6cc6647fa46bd17cb9a

mGBA Game Boy Advance Emulator

Qt: Better handling of GB sprite coords
Vicki Pfau vi@endrift.com
Sun, 02 Jun 2019 22:57:23 -0700
commit

cffff67c4989c391ea30f6cc6647fa46bd17cb9a

parent

ff735e35b77c2ee4246ed0413605a45ed6158847

2 files changed, 5 insertions(+), 5 deletions(-)

jump to
M src/platform/qt/AssetView.cppsrc/platform/qt/AssetView.cpp

@@ -260,10 +260,10 @@ 1,

palette, 0, 2, - obj->y != 0 && obj->y < 160, + obj->y != 0 && obj->y < 160 && obj->x != 0 && obj->x < 168, GBObjAttributesGetPriority(obj->attr), - obj->x, - obj->y, + obj->x - 8, + obj->y - 16, bool(GBObjAttributesIsXFlip(obj->attr)), bool(GBObjAttributesIsYFlip(obj->attr)), };
M src/platform/qt/AssetView.hsrc/platform/qt/AssetView.h

@@ -55,8 +55,8 @@ unsigned bits;

bool enabled : 1; unsigned priority : 2; - unsigned x : 9; - unsigned y : 9; + int x : 10; + int y : 10; bool hflip : 1; bool vflip : 1; QTransform xform;