Details | Last modification | View Log | RSS feed
Rev | Author | Line No. | Line |
---|---|---|---|
1 | pmbaty | 1 | /* |
2 | * src/scr_pause.c |
||
3 | * |
||
4 | * Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net). All rights reserved. |
||
5 | * |
||
6 | * The use and distribution terms for this software are contained in the file |
||
7 | * named README, which can be found in the root of this distribution. By |
||
8 | * using this software in any fashion, you are agreeing to be bound by the |
||
9 | * terms of this license. |
||
10 | * |
||
11 | * You must not remove this notice, or any other, from this software. |
||
12 | */ |
||
13 | |||
14 | #include <stddef.h> /* NULL */ |
||
15 | |||
16 | #include "system.h" |
||
17 | #include "game.h" |
||
18 | #include "screens.h" |
||
19 | |||
20 | #include "draw.h" |
||
21 | #include "control.h" |
||
22 | #include "ents.h" |
||
23 | |||
24 | |||
25 | /* |
||
26 | * Display the pause indicator |
||
27 | */ |
||
28 | void screen_pause (U8 pause) |
||
29 | { |
||
30 | if (pause == TRUE) |
||
31 | { |
||
32 | draw_tilesBank = 0; |
||
33 | draw_tllst = screen_pausedtxt; |
||
34 | draw_setfb (120, 80); |
||
35 | draw_tilesList (); |
||
36 | } |
||
37 | else { |
||
38 | draw_map (); |
||
39 | ent_draw (); |
||
40 | draw_drawStatus (); |
||
41 | } |
||
42 | game_rects = &draw_SCREENRECT; |
||
43 | } |