prevent using a framebuffer size that isn't evenly made up of 4x4 tiles
as our copy routine assumes dimensions of some multiple of 4x4 tiles ...
This commit is contained in:
parent
de919cd1f7
commit
02949f6631
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue