diff --git a/src/platform/qt/AssetView.cpp b/src/platform/qt/AssetView.cpp index 97d44578d..f77b779bb 100644 --- a/src/platform/qt/AssetView.cpp +++ b/src/platform/qt/AssetView.cpp @@ -260,10 +260,10 @@ bool AssetView::lookupObjGB(int id, struct ObjInfo* info) { 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)), }; diff --git a/src/platform/qt/AssetView.h b/src/platform/qt/AssetView.h index acc4a1454..c3d3a92b2 100644 --- a/src/platform/qt/AssetView.h +++ b/src/platform/qt/AssetView.h @@ -55,8 +55,8 @@ protected: 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;