NDS: Compile fixes

svn-id: r27508
This commit is contained in:
Bertrand Augereau 2007-06-17 10:30:34 +00:00
parent 65a39ab0d0
commit 29bfadcdd7
2 changed files with 6 additions and 1 deletions

View File

@ -478,7 +478,7 @@ bool OSystem_DS::grabRawScreen(Graphics::Surface* surf) {
// Ensure we copy using 16 bit quantities due to limitation of VRAM addressing
size_t imageStrideInBytes = isCpuScalerEnabled() DS::getGameWidth() ? 512;
size_t imageStrideInBytes = DS::isCpuScalerEnabled() ? DS::getGameWidth() : 512;
size_t imageStrideInWords = imageStrideInBytes / 2;
u16* image = (u16 *) DS::get8BitBackBuffer();

View File

@ -159,4 +159,9 @@ void OSystem_DS::colorToRGB(OverlayColor color, uint8 &r, uint8 &g, uint8 &b)
//consolePrintf("coltorgb\n");
}
namespace DS
{
bool isCpuScalerEnabled();
}
#endif