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