From 75ebfce89c39bc740367807c4c16f469135ba6d5 Mon Sep 17 00:00:00 2001 From: Holger Schemel Date: Fri, 29 Nov 2002 17:32:12 +0100 Subject: [PATCH] rnd-20021129-1-src --- src/cartoons.c | 2 +- src/conftime.h | 2 +- src/editor.c | 18 +++++------ src/game.c | 6 ++-- src/init.c | 12 +++++--- src/main.c | 1 + src/main.h | 1 + src/screens.c | 84 ++++++++++++++++++++++++-------------------------- src/tape.c | 19 ++++++------ src/tools.c | 24 +++++++-------- 10 files changed, 86 insertions(+), 83 deletions(-) diff --git a/src/cartoons.c b/src/cartoons.c index fde4e0ca..5b38eb77 100644 --- a/src/cartoons.c +++ b/src/cartoons.c @@ -310,7 +310,7 @@ boolean ToonNeedsRedraw() void InitToons() { - InitToonScreen(pix, pix[PIX_DB_DOOR], + InitToonScreen(pix, bitmap_db_door, BackToFront, PrepareBackbuffer, ToonNeedsRedraw, toons, NUM_TOONS, REAL_SX, REAL_SY, FULL_SXSIZE, FULL_SYSIZE); diff --git a/src/conftime.h b/src/conftime.h index 427e6c7a..977d6ef3 100644 --- a/src/conftime.h +++ b/src/conftime.h @@ -1 +1 @@ -#define COMPILE_DATE_STRING "[2002-11-27 00:18]" +#define COMPILE_DATE_STRING "[2002-11-29 17:31]" diff --git a/src/editor.c b/src/editor.c index 7b066ee9..35d7021e 100644 --- a/src/editor.c +++ b/src/editor.c @@ -1313,7 +1313,7 @@ static void ScrollMiniLevel(int from_x, int from_y, int scroll) static void CreateControlButtons() { - Bitmap *gd_bitmap = pix[PIX_DOOR]; + Bitmap *gd_bitmap = new_graphic_info[IMG_MENU_DOOR].bitmap; struct GadgetInfo *gi; unsigned long event_mask; int i; @@ -1534,7 +1534,7 @@ static void CreateCounterButtons() for (j=0; j<2; j++) { - Bitmap *gd_bitmap = pix[PIX_DOOR]; + Bitmap *gd_bitmap = new_graphic_info[IMG_MENU_DOOR].bitmap; struct GadgetInfo *gi; int id = (j == 0 ? counterbutton_info[i].gadget_id_down : @@ -1756,7 +1756,7 @@ static void CreateTextInputGadgets() for (i=0; i STATE_OFF / PRESS_ON */ if (video_pos[pos][part_label][0] && value != VIDEO_DISPLAY_SYMBOL_ONLY) - BlitBitmap(pix[PIX_DOOR], drawto, + BlitBitmap(new_graphic_info[IMG_MENU_DOOR].bitmap, drawto, cx + video_pos[pos][part_label][xpos], cy + video_pos[pos][part_label][ypos], video_pos[pos][part_label][xsize], @@ -196,7 +196,7 @@ void DrawVideoDisplay(unsigned long state, unsigned long value) VX + video_pos[pos][part_label][xpos], VY + video_pos[pos][part_label][ypos]); if (video_pos[pos][part_symbol][0] && value != VIDEO_DISPLAY_LABEL_ONLY) - BlitBitmap(pix[PIX_DOOR], drawto, + BlitBitmap(new_graphic_info[IMG_MENU_DOOR].bitmap, drawto, cx + video_pos[pos][part_symbol][xpos], cy + video_pos[pos][part_symbol][ypos], video_pos[pos][part_symbol][xsize], @@ -210,7 +210,7 @@ void DrawVideoDisplay(unsigned long state, unsigned long value) { int cx = DOOR_GFX_PAGEX4, cy = DOOR_GFX_PAGEY2; - BlitBitmap(pix[PIX_DOOR], drawto, + BlitBitmap(new_graphic_info[IMG_MENU_DOOR].bitmap, drawto, cx + VIDEO_PLAY_SYMBOL_XPOS, cy + VIDEO_PLAY_SYMBOL_YPOS, VIDEO_PLAY_SYMBOL_XSIZE - 2, @@ -223,7 +223,7 @@ void DrawVideoDisplay(unsigned long state, unsigned long value) { int cx = DOOR_GFX_PAGEX6, cy = DOOR_GFX_PAGEY1; - BlitBitmap(pix[PIX_DOOR], drawto, + BlitBitmap(new_graphic_info[IMG_MENU_DOOR].bitmap, drawto, cx + VIDEO_PBEND_LABEL_XPOS, cy + VIDEO_PBEND_LABEL_YPOS, VIDEO_PBEND_LABEL_XSIZE, @@ -267,9 +267,10 @@ void DrawVideoDisplay(unsigned long state, unsigned long value) void DrawCompleteVideoDisplay() { - BlitBitmap(pix[PIX_DOOR], drawto, DOOR_GFX_PAGEX3, DOOR_GFX_PAGEY2, + BlitBitmap(new_graphic_info[IMG_MENU_DOOR].bitmap, drawto, + DOOR_GFX_PAGEX3, DOOR_GFX_PAGEY2, gfx.vxsize, gfx.vysize, gfx.vx, gfx.vy); - BlitBitmap(pix[PIX_DOOR], drawto, + BlitBitmap(new_graphic_info[IMG_MENU_DOOR].bitmap, drawto, DOOR_GFX_PAGEX4 + VIDEO_CONTROL_XPOS, DOOR_GFX_PAGEY2 + VIDEO_CONTROL_YPOS, VIDEO_CONTROL_XSIZE, VIDEO_CONTROL_YSIZE, @@ -282,7 +283,7 @@ void DrawCompleteVideoDisplay() DrawVideoDisplay(VIDEO_STATE_TIME_ON, tape.length_seconds); } - BlitBitmap(drawto, pix[PIX_DB_DOOR], gfx.vx, gfx.vy, gfx.vxsize, gfx.vysize, + BlitBitmap(drawto, bitmap_db_door, gfx.vx, gfx.vy, gfx.vxsize, gfx.vysize, DOOR_GFX_PAGEX1, DOOR_GFX_PAGEY2); } @@ -731,7 +732,7 @@ void CreateTapeButtons() for (i=0; istored_clip_gc; WaitUntilDelayReached(&door_delay, door_delay_value); @@ -2280,7 +2280,7 @@ unsigned int MoveDoor(unsigned int door_state) int i = (door_state & DOOR_OPEN_1 ? DXSIZE-x : x); int j = (DXSIZE - i) / 3; - BlitBitmap(pix[PIX_DB_DOOR], drawto, + BlitBitmap(bitmap_db_door, drawto, DOOR_GFX_PAGEX1, DOOR_GFX_PAGEY1 + i/2, DXSIZE,DYSIZE - i/2, DX, DY); @@ -2323,7 +2323,7 @@ unsigned int MoveDoor(unsigned int door_state) int i = (door_state & DOOR_OPEN_2 ? VXSIZE - x : x); int j = (VXSIZE - i) / 3; - BlitBitmap(pix[PIX_DB_DOOR], drawto, + BlitBitmap(bitmap_db_door, drawto, DOOR_GFX_PAGEX1, DOOR_GFX_PAGEY2 + i/2, VXSIZE, VYSIZE - i/2, VX, VY); @@ -2375,7 +2375,7 @@ unsigned int MoveDoor(unsigned int door_state) void DrawSpecialEditorDoor() { /* draw bigger toolbox window */ - BlitBitmap(pix[PIX_DOOR], drawto, + BlitBitmap(new_graphic_info[IMG_MENU_DOOR].bitmap, drawto, DOOR_GFX_PAGEX7, 0, 108, 56, EX - 4, EY - 12); redraw_mask |= REDRAW_ALL; @@ -2384,7 +2384,7 @@ void DrawSpecialEditorDoor() void UndrawSpecialEditorDoor() { /* draw normal tape recorder window */ - BlitBitmap(pix[PIX_BACK], drawto, + BlitBitmap(new_graphic_info[IMG_MENU_BACK].bitmap, drawto, 562, 344, 108, 56, EX - 4, EY - 12); redraw_mask |= REDRAW_ALL; @@ -2513,7 +2513,7 @@ void CreateToolButtons() for (i=0; i