- Fixes/Improvements to Option screen (by Arynn)

git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2709 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
Wanne
2009-04-10 10:36:08 +00:00
parent 36eb308270
commit 9b9e22f09d
18 changed files with 1508 additions and 11 deletions
+38
View File
@@ -37,6 +37,9 @@
#include "Rain.h"
// end rain
// arynn : render mouse regions
#include "line.h"
//network headers
#include "connect.h"
@@ -355,6 +358,41 @@ void GameLoop(void)
// rain
RenderRain();
//DEBUG MODE : DEBUG RENDER ENTRY : point to drop in debugging render code
if( (gGameSettings.fOptions[TOPTION_RETAIN_DEBUG_OPTIONS_IN_RELEASE]) || (JA2BETAVERSION_FLAG))
{
// arynn : render mouse regions
if(gGameSettings.fOptions[TOPTION_RENDER_MOUSE_REGIONS])
{
MOUSE_REGION *curr;
UINT32 uiDestPitchBYTES;
UINT8 *pDestBuf;
curr = get_first_entry_in_MSYS_RegList();
while((curr != NULL) )
{
pDestBuf = LockVideoSurface( FRAME_BUFFER, &uiDestPitchBYTES );
SetClippingRegionAndImageWidth( uiDestPitchBYTES, 0, 0, SCREEN_WIDTH, SCREEN_HEIGHT );
LineDraw( TRUE, curr->RegionTopLeftX, curr->RegionTopLeftY,
curr->RegionBottomRightX, curr->RegionBottomRightY,
Get16BPPColor( FROMRGB( 200, 200, 200 )), pDestBuf);
RectangleDraw( TRUE, curr->RegionTopLeftX, curr->RegionTopLeftY,
curr->RegionBottomRightX, curr->RegionBottomRightY,
Get16BPPColor( FROMRGB( 200, 200, 200 )), pDestBuf);
curr = get_next_entry_in_MSYS_RegList(curr);
UnLockVideoSurface( FRAME_BUFFER );
}
}
}
else
{
//when coming from a recent debug.exe to a rel.exe, and option to carry over debug functions is off, disable debug mode options
gGameSettings.fOptions[TOPTION_RENDER_MOUSE_REGIONS] = FALSE;
}
if( gfSkipFrame )
gfSkipFrame = FALSE;
else