diff options
Diffstat (limited to 'apps/plugins/xrick/scr_pause.c')
-rw-r--r-- | apps/plugins/xrick/scr_pause.c | 50 |
1 files changed, 50 insertions, 0 deletions
diff --git a/apps/plugins/xrick/scr_pause.c b/apps/plugins/xrick/scr_pause.c new file mode 100644 index 0000000000..04c3368d21 --- /dev/null +++ b/apps/plugins/xrick/scr_pause.c | |||
@@ -0,0 +1,50 @@ | |||
1 | /* | ||
2 | * xrick/scr_pause.c | ||
3 | * | ||
4 | * Copyright (C) 1998-2002 BigOrno (bigorno@bigorno.net). | ||
5 | * Copyright (C) 2008-2014 Pierluigi Vicinanza. | ||
6 | * All rights reserved. | ||
7 | * | ||
8 | * The use and distribution terms for this software are contained in the file | ||
9 | * named README, which can be found in the root of this distribution. By | ||
10 | * using this software in any fashion, you are agreeing to be bound by the | ||
11 | * terms of this license. | ||
12 | * | ||
13 | * You must not remove this notice, or any other, from this software. | ||
14 | */ | ||
15 | |||
16 | #include "xrick/screens.h" | ||
17 | |||
18 | #include "xrick/game.h" | ||
19 | #include "xrick/draw.h" | ||
20 | #include "xrick/control.h" | ||
21 | #include "xrick/ents.h" | ||
22 | |||
23 | /* | ||
24 | * Display the pause indicator | ||
25 | */ | ||
26 | void | ||
27 | screen_pause(bool pause) | ||
28 | { | ||
29 | if (pause) { | ||
30 | draw_tilesBank = 0; | ||
31 | draw_tllst = screen_pausedtxt; | ||
32 | draw_setfb(120, 80); | ||
33 | #ifdef GFXPC | ||
34 | draw_filter = 0xAAAA; | ||
35 | #endif | ||
36 | draw_tilesList(); | ||
37 | } | ||
38 | else { | ||
39 | #ifdef GFXPC | ||
40 | draw_filter = 0xFFFF; | ||
41 | #endif | ||
42 | draw_map(); | ||
43 | ent_draw(); | ||
44 | draw_drawStatus(); | ||
45 | } | ||
46 | game_rects = &draw_SCREENRECT; | ||
47 | } | ||
48 | |||
49 | |||
50 | /* eof */ | ||