vrshoot
view src/scr_overlay.cc @ 2:334d17aed7de
visual studio project files
author | John Tsiombikas <nuclear@member.fsf.org> |
---|---|
date | Sun, 02 Feb 2014 18:36:38 +0200 |
parents | |
children |
line source
1 #include "scr_overlay.h"
2 #include "logger.h"
4 void OverlayScreen::start()
5 {
6 if(!(prev = previous_screen())) {
7 error_log("Failed to start overlay screen: %s. No previous screen found.\n", get_name());
8 }
9 prev->start();
10 }
12 void OverlayScreen::stop()
13 {
14 prev->stop();
15 }
17 long OverlayScreen::redisplay_interval() const
18 {
19 return prev->redisplay_interval();
20 }
22 void OverlayScreen::pre_draw() const
23 {
24 prev->pre_draw();
25 }
27 void OverlayScreen::display() const
28 {
29 prev->display();
30 }
32 void OverlayScreen::post_draw() const
33 {
34 prev->post_draw();
35 }
37 void OverlayScreen::keyboard(int key, bool pressed)
38 {
39 prev->keyboard(key, pressed);
40 }
42 void OverlayScreen::motion(int x, int y, bool pressed)
43 {
44 prev->motion(x, y, pressed);
45 }
47 void OverlayScreen::button(int bn, bool pressed, int x, int y)
48 {
49 prev->button(bn, pressed, x, y);
50 }
52 void OverlayScreen::reshape(int x, int y)
53 {
54 prev->reshape(x, y);
55 }