mirror of
https://github.com/dborth/snes9xgx.git
synced 2024-11-01 00:15:14 +01:00
alignment correction
This commit is contained in:
parent
81d8491821
commit
56e9c8304e
@ -285,7 +285,7 @@ ParseDirectory()
|
||||
ResetBrowser();
|
||||
|
||||
// add device to path
|
||||
sprintf(fulldir, "%s/%s", rootdir, browser.dir);
|
||||
sprintf(fulldir, "%s%s", rootdir, browser.dir);
|
||||
|
||||
// open the directory
|
||||
dir = diropen(fulldir);
|
||||
|
@ -31,7 +31,9 @@ GuiImageData::GuiImageData(const u8 * img)
|
||||
|
||||
if(res == PNGU_OK)
|
||||
{
|
||||
data = (u8 *)memalign (32, imgProp.imgWidth * imgProp.imgHeight * 4);
|
||||
int len = imgProp.imgWidth * imgProp.imgHeight * 4;
|
||||
if(len%32) len += (32-len%32);
|
||||
data = (u8 *)memalign (32, len);
|
||||
|
||||
if(data)
|
||||
{
|
||||
@ -41,8 +43,7 @@ GuiImageData::GuiImageData(const u8 * img)
|
||||
{
|
||||
width = imgProp.imgWidth;
|
||||
height = imgProp.imgHeight;
|
||||
int len = imgProp.imgWidth * imgProp.imgHeight * 4;
|
||||
DCFlushRange(data, len+len%32);
|
||||
DCFlushRange(data, len);
|
||||
}
|
||||
else
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user