mirror of https://github.com/mgba-emu/mgba.git
Qt: Better handling of GB sprite coords
This commit is contained in:
parent
ff735e35b7
commit
cffff67c49
|
@ -260,10 +260,10 @@ bool AssetView::lookupObjGB(int id, struct ObjInfo* info) {
|
||||||
palette,
|
palette,
|
||||||
0,
|
0,
|
||||||
2,
|
2,
|
||||||
obj->y != 0 && obj->y < 160,
|
obj->y != 0 && obj->y < 160 && obj->x != 0 && obj->x < 168,
|
||||||
GBObjAttributesGetPriority(obj->attr),
|
GBObjAttributesGetPriority(obj->attr),
|
||||||
obj->x,
|
obj->x - 8,
|
||||||
obj->y,
|
obj->y - 16,
|
||||||
bool(GBObjAttributesIsXFlip(obj->attr)),
|
bool(GBObjAttributesIsXFlip(obj->attr)),
|
||||||
bool(GBObjAttributesIsYFlip(obj->attr)),
|
bool(GBObjAttributesIsYFlip(obj->attr)),
|
||||||
};
|
};
|
||||||
|
|
|
@ -55,8 +55,8 @@ protected:
|
||||||
|
|
||||||
bool enabled : 1;
|
bool enabled : 1;
|
||||||
unsigned priority : 2;
|
unsigned priority : 2;
|
||||||
unsigned x : 9;
|
int x : 10;
|
||||||
unsigned y : 9;
|
int y : 10;
|
||||||
bool hflip : 1;
|
bool hflip : 1;
|
||||||
bool vflip : 1;
|
bool vflip : 1;
|
||||||
QTransform xform;
|
QTransform xform;
|
||||||
|
|
Loading…
Reference in New Issue