GTK/CLI Ports:

- Fix compiling for CLI port. (Regression from r5198.)
- Fix issue with GTK port where the video output framebuffer wasn't getting cleared on reset. (Regression from r5198.)
This commit is contained in:
rogerman 2015-06-13 23:23:56 +00:00
parent 11a8221856
commit 6673298c1e
2 changed files with 2 additions and 2 deletions

View File

@ -488,7 +488,7 @@ static void desmume_cycle(struct ctrls_event_config * cfg)
}
#ifdef HAVE_LIBAGG
T_AGG_RGB555 agg_targetScreen_cli(GPU_screen, 256, 384, 512);
T_AGG_RGB555 agg_targetScreen_cli((u8 *)GPU_screen, 256, 384, 512);
#endif
int main(int argc, char ** argv) {

View File

@ -1413,7 +1413,7 @@ static void Reset()
Pause();
NDS_Reset();
// Clear the NDS screen
memset(GPU_screen, 0xFF, sizeof(GPU_screen));
memset(GPU_screen, 0xFF, GPU_GetFramebufferWidth() * GPU_GetFramebufferHeight() * 2 * sizeof(u16));
RedrawScreen();
if (shouldBeRunning) {
Launch();