diff --git a/src/gxfb.c b/src/gxfb.c index d082f11..e78d3f3 100644 --- a/src/gxfb.c +++ b/src/gxfb.c @@ -211,8 +211,12 @@ int fb_init(GXRModeObj *rmode, int width, int height) { return 1; if (width <= 0 || width > (rmode->fbWidth / 2)) return 1; + if (width % 4) + return 1; if (height <= 0 || height > rmode->efbHeight) return 1; + if (height % 4) + return 1; video_init(rmode);