summaryrefslogtreecommitdiff
path: root/src/graphic/graphic.cpp
diff options
context:
space:
mode:
authorEugenio Favalli <elvenprogrammer@gmail.com>2004-09-26 13:57:56 +0000
committerEugenio Favalli <elvenprogrammer@gmail.com>2004-09-26 13:57:56 +0000
commit0f26f569f5775c77c53e1ebf0b9d5ec972bc31cc (patch)
tree44011f0960de23743820d22406a6026c29480324 /src/graphic/graphic.cpp
parent92bbeab96bf61edf9b7caa125ed67e634258383e (diff)
downloadmana-client-0f26f569f5775c77c53e1ebf0b9d5ec972bc31cc.tar.gz
mana-client-0f26f569f5775c77c53e1ebf0b9d5ec972bc31cc.tar.bz2
mana-client-0f26f569f5775c77c53e1ebf0b9d5ec972bc31cc.tar.xz
mana-client-0f26f569f5775c77c53e1ebf0b9d5ec972bc31cc.zip
*** empty log message ***
Diffstat (limited to 'src/graphic/graphic.cpp')
-rw-r--r--src/graphic/graphic.cpp22
1 files changed, 13 insertions, 9 deletions
diff --git a/src/graphic/graphic.cpp b/src/graphic/graphic.cpp
index 3a6e71a3..575f6b3e 100644
--- a/src/graphic/graphic.cpp
+++ b/src/graphic/graphic.cpp
@@ -36,9 +36,9 @@
#include "../game.h"
#include "../map.h"
#include "../being.h"
-#include "../Gui/chat.h"
-#include "../Gui/inventory.h"
-#include "../data/graphic/gfx_data.h"
+#include "../gui/chat.h"
+#include "../gui/inventory.h"
+#include "../../data/graphic/gfx_data.h"
BITMAP *buffer, *double_buffer, *chat_background;
DATAFILE *tileset;
@@ -140,7 +140,7 @@ void do_graphic(void) {
if(get_tile(i+camera_x, j+camera_y, 1)!=0)draw_rle_sprite(buffer, (RLE_SPRITE *)tileset[get_tile(i+camera_x, j+camera_y, 1)].dat, i*16-offset_x, j*16-offset_y);
}
- NODE *node = get_head();
+ NODE *node = get_head();
NODE *old_node = NULL;
while(node) {
if((node->job>=100)&&(node->job<=110)) { // Draw a NPC
@@ -201,15 +201,19 @@ void do_graphic(void) {
remove_node(old_node->id);
}
- for(int j=0;j<20;j++)
+ /*for(int j=0;j<20;j++)
for(int i=0;i<26;i++) {
if(get_tile(i+camera_x, j+camera_y, 2)!=0)draw_rle_sprite(buffer, (RLE_SPRITE *)tileset[get_tile(i+camera_x, j+camera_y, 2)].dat, i*16-offset_x, j*16-offset_y);
- }
+ }*/
+
+
stretch_blit(buffer, double_buffer, 0, 0, 400, 300, 0, 0, 800, 600);
+
+
// Draw player speech
- node = get_head();
+ /*node = get_head();
while(node) {
if(node->speech!=NULL) {
alfont_textprintf_aa(double_buffer, gui_font, node->text_x+260-alfont_text_length(gui_font, node->speech)/2, node->text_y+100, node->speech_color, "%s", node->speech);
@@ -221,7 +225,7 @@ void do_graphic(void) {
}
}
node = node->next;
- }
+ }
inventory.draw(double_buffer);
@@ -242,7 +246,7 @@ void do_graphic(void) {
}
- alfont_textprintf_aa(double_buffer, gui_font, 0, 0, MAKECOL_WHITE, "FPS:%i", fps);
+ alfont_textprintf_aa(double_buffer, gui_font, 0, 0, MAKECOL_WHITE, "FPS:%i", fps);*/
blit(double_buffer, screen, 0, 0, 0, 0, 800, 600);