X-Git-Url: https://git.artsoft.org/?p=rocksndiamonds.git;a=blobdiff_plain;f=src%2Ftools.c;h=7e8806e54f67fd3e2e9055f631bee2229863b15b;hp=b45ec0fb1ae12422400108f25206296a0dc7d537;hb=e43c14095cf443505e6c0d0bc140eab2993c98a4;hpb=bc3ec6b70e1c180eb67be294872e58956b705245 diff --git a/src/tools.c b/src/tools.c index b45ec0fb..7e8806e5 100644 --- a/src/tools.c +++ b/src/tools.c @@ -227,7 +227,7 @@ void DumpTile(int x, int y) printf(" CustomValue: %d\n", CustomValue[x][y]); printf(" GfxElement: %d\n", GfxElement[x][y]); printf(" GfxAction: %d\n", GfxAction[x][y]); - printf(" GfxFrame: %d\n", GfxFrame[x][y]); + printf(" GfxFrame: %d [%d]\n", GfxFrame[x][y], FrameCounter); printf("\n"); } @@ -330,8 +330,8 @@ void DrawMaskedBorder_ALL() void DrawMaskedBorder(int redraw_mask) { /* never draw masked screen borders on borderless screens */ - if (effectiveGameStatus() == GAME_MODE_LOADING || - effectiveGameStatus() == GAME_MODE_TITLE) + if (game_status == GAME_MODE_LOADING || + game_status == GAME_MODE_TITLE) return; if (redraw_mask & REDRAW_ALL) @@ -826,6 +826,10 @@ boolean CheckIfGlobalBorderRedrawIsNeeded() if (game_status == game_status_last) return FALSE; + // redraw if last screen was title screen + if (game_status_last == GAME_MODE_TITLE) + return TRUE; + // redraw if global screen border has changed if (CheckIfGlobalBorderHasChanged()) return TRUE; @@ -2294,7 +2298,7 @@ void DrawEnvelopeRequest(char *text) if (request.centered) sx_offset = (request.width - text_width) / 2; - if (request.wrap_single_words) + if (request.wrap_single_words && !request.autowrap) { char *src_text_ptr, *dst_text_ptr;