mirror of
https://github.com/1dot13/source.git
synced 2026-08-12 14:10:23 +02:00
Fixes (by Moa)
-SGP debugging now works again (corrected some typos and one missing include). -Memmory debugging works again (wrong types corrected) -Laptop screen heigth macro and all references is now usable. (was 'C: y + A' 'D: B - C' which translates to 'D: B - y + A' instead of 'D: B - y - A') -Laptop screens do not need to rerender as often then before as the laptop screen width/heigth macros works now and invalidating screen will do the trick -> almost no render calls neccessary. -MercProfile.ubMiscFlag was used instead of .ubMiscFlag2 -> enter sector action schedule for soldiers which dont need to be insertered is now canceled as intended git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@6509 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -95,8 +95,9 @@ void RenderBobbyRAmmo()
|
||||
MarkButtonsDirty( );
|
||||
RenderWWWProgramTitleBar( );
|
||||
InvalidateRegion(LAPTOP_SCREEN_UL_X,LAPTOP_SCREEN_WEB_UL_Y,LAPTOP_SCREEN_LR_X,LAPTOP_SCREEN_WEB_LR_Y);
|
||||
fReDrawScreenFlag = TRUE;
|
||||
fPausedReDrawScreenFlag = TRUE;
|
||||
//Moa removed below. See comment above LAPTOP_SCREEN_UL_X in laptop.h
|
||||
// fReDrawScreenFlag = TRUE;
|
||||
//fPausedReDrawScreenFlag = TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -97,8 +97,9 @@ void RenderBobbyRArmour()
|
||||
MarkButtonsDirty( );
|
||||
RenderWWWProgramTitleBar( );
|
||||
InvalidateRegion(LAPTOP_SCREEN_UL_X,LAPTOP_SCREEN_WEB_UL_Y,LAPTOP_SCREEN_LR_X,LAPTOP_SCREEN_WEB_LR_Y);
|
||||
fReDrawScreenFlag = TRUE;
|
||||
fPausedReDrawScreenFlag = TRUE;
|
||||
//Moa removed below. See comment above LAPTOP_SCREEN_UL_X in laptop.h
|
||||
// fReDrawScreenFlag = TRUE;
|
||||
//fPausedReDrawScreenFlag = TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -467,8 +467,9 @@ void RenderBobbyRGuns()
|
||||
RenderWWWProgramTitleBar( );
|
||||
//InvalidateRegion(0,0,SCREEN_WIDTH, SCREEN_HEIGHT);
|
||||
InvalidateRegion(LAPTOP_SCREEN_UL_X,LAPTOP_SCREEN_WEB_UL_Y,LAPTOP_SCREEN_LR_X,LAPTOP_SCREEN_WEB_LR_Y);
|
||||
fReDrawScreenFlag = TRUE;
|
||||
fPausedReDrawScreenFlag = TRUE;
|
||||
//Moa removed below. See comment above LAPTOP_SCREEN_UL_X in laptop.h
|
||||
// fReDrawScreenFlag = TRUE;
|
||||
//fPausedReDrawScreenFlag = TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -97,8 +97,9 @@ void RenderBobbyRMisc()
|
||||
MarkButtonsDirty( );
|
||||
RenderWWWProgramTitleBar( );
|
||||
InvalidateRegion(LAPTOP_SCREEN_UL_X,LAPTOP_SCREEN_WEB_UL_Y,LAPTOP_SCREEN_LR_X,LAPTOP_SCREEN_WEB_LR_Y);
|
||||
fReDrawScreenFlag = TRUE;
|
||||
fPausedReDrawScreenFlag = TRUE;
|
||||
//Moa removed below. See comment above LAPTOP_SCREEN_UL_X in laptop.h
|
||||
// fReDrawScreenFlag = TRUE;
|
||||
//fPausedReDrawScreenFlag = TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -93,8 +93,9 @@ void RenderBobbyRUsed()
|
||||
MarkButtonsDirty( );
|
||||
RenderWWWProgramTitleBar( );
|
||||
InvalidateRegion(LAPTOP_SCREEN_UL_X,LAPTOP_SCREEN_WEB_UL_Y,LAPTOP_SCREEN_LR_X,LAPTOP_SCREEN_WEB_LR_Y);
|
||||
fReDrawScreenFlag = TRUE;
|
||||
fPausedReDrawScreenFlag = TRUE;
|
||||
//Moa removed below. See comment above LAPTOP_SCREEN_UL_X in laptop.h
|
||||
// fReDrawScreenFlag = TRUE;
|
||||
//fPausedReDrawScreenFlag = TRUE;
|
||||
}
|
||||
|
||||
|
||||
|
||||
@@ -61,7 +61,7 @@ void RenderBrokenLink()
|
||||
|
||||
void DrawBrokenLinkWhiteBackground()
|
||||
{
|
||||
ColorFillVideoSurfaceArea( FRAME_BUFFER, LAPTOP_SCREEN_UL_X, LAPTOP_SCREEN_WEB_UL_Y, LAPTOP_SCREEN_LR_X, LAPTOP_SCREEN_WEB_LR_Y - 55, Get16BPPColor( FROMRGB( 255, 255, 255) ) );
|
||||
ColorFillVideoSurfaceArea( FRAME_BUFFER, LAPTOP_SCREEN_UL_X, LAPTOP_SCREEN_WEB_UL_Y, LAPTOP_SCREEN_LR_X, LAPTOP_SCREEN_WEB_LR_Y /*- 55*/, Get16BPPColor( FROMRGB( 255, 255, 255) ) );
|
||||
}
|
||||
|
||||
|
||||
|
||||
+2
-1
@@ -78,7 +78,8 @@ extern AIM_AVAILABLE gAimAvailability[ NUM_PROFILES ];
|
||||
#define BOTTOM_BUTTON_START_HEIGHT 18
|
||||
#define BOTTOM_BUTTON_START_X LAPTOP_SCREEN_UL_X + 25
|
||||
|
||||
#define BOTTOM_BUTTON_START_Y LAPTOP_SCREEN_WEB_LR_Y - BOTTOM_BUTTON_START_HEIGHT - 57
|
||||
//#define BOTTOM_BUTTON_START_Y LAPTOP_SCREEN_WEB_LR_Y - BOTTOM_BUTTON_START_HEIGHT - 57
|
||||
#define BOTTOM_BUTTON_START_Y (LAPTOP_SCREEN_WEB_LR_Y - BOTTOM_BUTTON_START_HEIGHT - 3)
|
||||
#define BOTTOM_BUTTON_AMOUNT NUM_AIM_SCREENS
|
||||
#define BOTTOM_BUTTON_GAP 0
|
||||
#define BOTTOM_BUTTON_TEXT_Y BOTTOM_BUTTON_START_Y + 6
|
||||
|
||||
+11
-11
@@ -173,22 +173,22 @@ enum{
|
||||
#define LAPTOP_X iScreenWidthOffset
|
||||
#define LAPTOP_Y iScreenHeightOffset
|
||||
|
||||
|
||||
#define LAPTOP_SCREEN_UL_X iScreenWidthOffset + 111
|
||||
#define LAPTOP_SCREEN_UL_Y iScreenHeightOffset + 27
|
||||
//Moa: added brackets around definitions below to make them work. Especialy LAPTOP_SCREEN_HEIGHT and all its references resulted in wrong regions for invalidating screen which in return forced to redraw the screen emidiatly after render as invalidate did not work. Removed those redraw flags from all render functions I found (f.i.RenderBobbyRUsed()), but most likely missed some of them.
|
||||
#define LAPTOP_SCREEN_UL_X (iScreenWidthOffset + 111)
|
||||
#define LAPTOP_SCREEN_UL_Y (iScreenHeightOffset + 27)
|
||||
|
||||
|
||||
#define LAPTOP_SCREEN_LR_X iScreenWidthOffset + 613
|
||||
#define LAPTOP_SCREEN_LR_Y iScreenHeightOffset + 427
|
||||
#define LAPTOP_UL_X iScreenWidthOffset + 24
|
||||
#define LAPTOP_UL_Y iScreenHeightOffset + 27
|
||||
#define LAPTOP_SCREEN_LR_X (iScreenWidthOffset + 613)
|
||||
#define LAPTOP_SCREEN_LR_Y (iScreenHeightOffset + 427)
|
||||
#define LAPTOP_UL_X (iScreenWidthOffset + 24)
|
||||
#define LAPTOP_UL_Y (iScreenHeightOffset + 27)
|
||||
|
||||
#define LAPTOP_SCREEN_WIDTH LAPTOP_SCREEN_LR_X - LAPTOP_SCREEN_UL_X
|
||||
#define LAPTOP_SCREEN_HEIGHT LAPTOP_SCREEN_LR_Y - LAPTOP_SCREEN_UL_Y
|
||||
#define LAPTOP_SCREEN_WIDTH (LAPTOP_SCREEN_LR_X - LAPTOP_SCREEN_UL_X)
|
||||
#define LAPTOP_SCREEN_HEIGHT (LAPTOP_SCREEN_LR_Y - LAPTOP_SCREEN_UL_Y)
|
||||
|
||||
// new positions for web browser
|
||||
#define LAPTOP_SCREEN_WEB_UL_Y LAPTOP_SCREEN_UL_Y + 19
|
||||
#define LAPTOP_SCREEN_WEB_LR_Y LAPTOP_SCREEN_WEB_UL_Y + LAPTOP_SCREEN_HEIGHT
|
||||
#define LAPTOP_SCREEN_WEB_UL_Y (LAPTOP_SCREEN_UL_Y + 19)
|
||||
#define LAPTOP_SCREEN_WEB_LR_Y (LAPTOP_SCREEN_WEB_UL_Y + LAPTOP_SCREEN_HEIGHT)
|
||||
#define LAPTOP_SCREEN_WEB_DELTA_Y 19 //LAPTOP_SCREEN_WEB_UL_Y - LAPTOP_SCREEN_UL_Y
|
||||
|
||||
// the laptop on/off button
|
||||
|
||||
Reference in New Issue
Block a user