X-Git-Url: https://git.artsoft.org/?a=blobdiff_plain;f=src%2Fscreens.c;h=e4f8f8a157e45872c9365ee880775663b92958b8;hb=4b0c6356359ee52f98cee8fa578179c6c41d4ef1;hp=bfb4f117b707be67777870a00a0a1845a6880bfc;hpb=b7d31643c9c84104fb3ebef778e545928610ff65;p=rocksndiamonds.git diff --git a/src/screens.c b/src/screens.c index bfb4f117..e4f8f8a1 100644 --- a/src/screens.c +++ b/src/screens.c @@ -25,6 +25,10 @@ #include "joystick.h" #include "cartoons.h" +#ifdef MSDOS +extern unsigned char get_ascii(KeySym); +#endif + void DrawHeadline() { int x1 = SX+(SXSIZE - strlen(GAMETITLE_STRING) * FONT1_XSIZE) / 2; @@ -482,10 +486,11 @@ void DrawHelpScreenElAction(int start) i++; } - redraw_tiles += 28; for(i=2;i<16;i++) - redraw[0][i] = redraw[1][i] = TRUE; - redraw_mask |= REDRAW_TILES; + { + MarkTileDirty(0,i); + MarkTileDirty(1,i); + } } void DrawHelpScreenElText(int start) @@ -661,7 +666,7 @@ void HandleHelpScreen(int button) } else { - if (DelayReached(&hs_delay,GAME_FRAME_DELAY)) + if (DelayReached(&hs_delay,GAME_FRAME_DELAY * 2)) { if (helpscreen_state=XK_A && key<=XK_Z) || (key>=XK_a && key<=XK_z && xpos=XK_a && key<=XK_z) ascii = 'a'+(char)(key-XK_a); +#else + if((ascii = get_ascii(key)) && xpos