summaryrefslogtreecommitdiff
path: root/src/graphic/graphic.h
diff options
context:
space:
mode:
authorBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-25 10:30:18 +0000
committerBjørn Lindeijer <bjorn@lindeijer.nl>2004-12-25 10:30:18 +0000
commitce4dec28c1432769ee19d84f77cd484c5d143200 (patch)
treea212aaefa78650cb7d8122df158afbfb4321295e /src/graphic/graphic.h
parentaa34695e10cf3051a28ab490827b548d4c233d1b (diff)
downloadmana-ce4dec28c1432769ee19d84f77cd484c5d143200.tar.gz
mana-ce4dec28c1432769ee19d84f77cd484c5d143200.tar.bz2
mana-ce4dec28c1432769ee19d84f77cd484c5d143200.tar.xz
mana-ce4dec28c1432769ee19d84f77cd484c5d143200.zip
* Huge formatting changes and some attempts in simplifying graphics code.
* Use of STL vector in npc.cpp
Diffstat (limited to 'src/graphic/graphic.h')
-rw-r--r--src/graphic/graphic.h6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/graphic/graphic.h b/src/graphic/graphic.h
index 4cd00d5b..b8eee3a8 100644
--- a/src/graphic/graphic.h
+++ b/src/graphic/graphic.h
@@ -86,19 +86,15 @@ class VideoSurface : public Surface {
destroy_bitmap(page[2]);
}
void lock() {
-#ifdef WIN32
acquire_bitmap(buffer);
-#endif
}
void show() {
-#ifdef WIN32
release_bitmap(buffer);
-#endif
show_video_bitmap(buffer);
}
void update() {
current_page++;
- if(current_page=2) {
+ if (current_page == 2) {
current_page = 0;
}
buffer = page[current_page];