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:
parent
11a8221856
commit
6673298c1e
|
@ -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) {
|
||||
|
|
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue