From a7b881d2705e2fcc7a309c222521d6cfd06377b0 Mon Sep 17 00:00:00 2001 From: sparky4 Date: Thu, 16 Jun 2016 11:31:51 -0500 Subject: [PATCH] optimize for XT i did ww --- src/lib/.scroll16.c.kate-swp | Bin 273 -> 0 bytes src/lib/scroll16.c | 13 ------------- src/scroll.c | 13 +++++++++++++ 3 files changed, 13 insertions(+), 13 deletions(-) delete mode 100755 src/lib/.scroll16.c.kate-swp diff --git a/src/lib/.scroll16.c.kate-swp b/src/lib/.scroll16.c.kate-swp deleted file mode 100755 index 15778a1f525ee758218297020096eabcd807287e..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 273 zcmZQzU=Z?7EJ;-eE>A2_aLdd|RWQ;sU|?Vnm}qO8Us327bIMPq$%FO!kKiB%24;{9 z2rz*-`Vck)2Z*Bw<*0x-x=@Y;h@%7Lh=VxV$TC_`4kt)P6UqUbrUB(BgJjg9oCFX@ y4Ox#Wlmm8-3X~%q3RGqQBJ@Fo9*EEd5jr438$@V<2u%>70V32vgc^uYbp-&gnHt>y diff --git a/src/lib/scroll16.c b/src/lib/scroll16.c index c36c5f3f..711d4bc0 100755 --- a/src/lib/scroll16.c +++ b/src/lib/scroll16.c @@ -802,19 +802,6 @@ void shinku(global_game_variables_t *gv) }else //copy dat sheet gv->kurokku.tiku++; - switch(gv->kurokku.fpscap) - { - case 0: - modexprint(&(gv->video.page[shinku_fps_indicator_page]), x, y+8, type, col, bgcol, "sanic!"); - gv->kurokku.frames_per_second=1; - break; - case 1: - //turn this off if XT - //modexWaitBorder(); - vga_wait_for_vsync(); - gv->kurokku.frames_per_second=60; - break; - } if(pageflipflop){ if(gv->video.r){ /* block copy pattern to where we will draw the sprite */ diff --git a/src/scroll.c b/src/scroll.c index 3a7d694d..18c53111 100755 --- a/src/scroll.c +++ b/src/scroll.c @@ -288,6 +288,19 @@ void main(int argc, char *argv[]) if(IN_KeyDown(68)) //f10 { gvar.kurokku.fpscap=!gvar.kurokku.fpscap; + switch(gvar.kurokku.fpscap) + { + case 0: + //modexprint(&(gv->video.page[shinku_fps_indicator_page]), x, y+8, type, col, bgcol, "sanic!"); + gvar.kurokku.frames_per_second=1; + break; + case 1: + //turn this off if XT + //modexWaitBorder(); + vga_wait_for_vsync(); + gvar.kurokku.frames_per_second=60; + break; + } IN_UserInput(1,1); } if(IN_KeyDown(67)) //f9 -- 2.39.5