diff options
author | Nebuleon Fumika | 2012-12-25 16:00:34 -0500 |
---|---|---|
committer | Nebuleon Fumika | 2012-12-26 11:29:47 -0500 |
commit | 9c1742f6cb2043d0ed6a61ab6de3bef0aad6dc56 (patch) | |
tree | 7f52adbb95afedc11cee0e724623be0a8351914c /source/nds/draw.c | |
parent | 7f0e1fee814df6c44ced04246f511b0f91787673 (diff) | |
download | snesemu-9c1742f6cb2043d0ed6a61ab6de3bef0aad6dc56.tar.gz snesemu-9c1742f6cb2043d0ed6a61ab6de3bef0aad6dc56.tar.bz2 snesemu-9c1742f6cb2043d0ed6a61ab6de3bef0aad6dc56.zip |
Universally use update method 2 for the lower screen and 0 for the upper screen. Method 1 causes problems after about 15 minutes; despite the double-buffering, screen updates start to tear in the middle consistently.
Diffstat (limited to 'source/nds/draw.c')
-rw-r--r-- | source/nds/draw.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/source/nds/draw.c b/source/nds/draw.c index 9d1b8ec..2a9e440 100644 --- a/source/nds/draw.c +++ b/source/nds/draw.c @@ -811,7 +811,7 @@ u32 draw_yesno_dialog(enum SCREEN_ID screen, u32 sy, char *yes, char *no) // draw_string_vcenter(screen_address, i+1, sy+1, box_width, COLOR_WHITE, no); draw_string_vcenter((unsigned short*)screen_addr, 138, 130, 58, COLOR_WHITE, no); - ds2_flipScreen(screen, 1); + ds2_flipScreen(screen, 2); gui_action_type gui_action = CURSOR_NONE; while((gui_action != CURSOR_SELECT) && (gui_action != CURSOR_BACK)) @@ -860,7 +860,7 @@ void init_progress(enum SCREEN_ID screen, u32 total, char *text) drawboxfill((unsigned short*)screen_addr, progress_sx, progress_sy, progress_ex, progress_ey, COLOR16(15, 15, 15)); - ds2_flipScreen(_progress_screen_id, 1); + ds2_flipScreen(_progress_screen_id, 2); } // update progress bar @@ -883,7 +883,7 @@ void update_progress(void) drawboxfill(screen_addr, progress_sx, progress_sy, progress_sx+width, progress_ey, COLOR16(30, 19, 7)); - ds2_flipScreen(_progress_screen_id, 1); + ds2_flipScreen(_progress_screen_id, 2); } // display progress string @@ -908,7 +908,7 @@ void show_progress(char *text) // if (text[0] != '\0') // print_string_center(progress_sy - 21, COLOR_PROGRESS_TEXT, COLOR_DIALOG, text); - ds2_flipScreen(_progress_screen_id, 1); + ds2_flipScreen(_progress_screen_id, 2); // OSTimeDly(progress_wait); mdelay(500); |