mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Bugfix: Problems with refreshing fast help text in mapscreen (by jones bearpit)
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@2825 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -295,7 +295,8 @@ void RenderMapScreenInterfaceBottom( BOOLEAN fForceMapscreenFullRender )
|
||||
|
||||
// render whole panel
|
||||
// HEADROCK Changed this line to accept outside influence through the new boolean:
|
||||
if ( fForceMapscreenFullRender == TRUE || fMapScreenBottomDirty == TRUE)
|
||||
//if ( fForceMapscreenFullRender == TRUE || fMapScreenBottomDirty == TRUE)
|
||||
if ( fMapScreenBottomDirty )
|
||||
{
|
||||
// get and blt panel
|
||||
GetVideoObject(&hHandle, guiMAPBOTTOMPANEL );
|
||||
|
||||
@@ -424,7 +424,10 @@ INT16 gpSamSectorY[ MAX_NUMBER_OF_SAMS ];
|
||||
extern BOOLEAN fSamSiteFoundOrig[ MAX_NUMBER_OF_SAMS ];
|
||||
|
||||
// map region
|
||||
SGPRect MapScreenRect={ (MAP_VIEW_START_X+MAP_GRID_X - 2), ( MAP_VIEW_START_Y+MAP_GRID_Y - 1), MAP_VIEW_START_X + MAP_VIEW_WIDTH - 1 + MAP_GRID_X , MAP_VIEW_START_Y+MAP_VIEW_HEIGHT-10+MAP_GRID_Y};
|
||||
SGPRect MapScreenRect={ (MAP_VIEW_START_X+MAP_GRID_X - 2),
|
||||
( MAP_VIEW_START_Y+MAP_GRID_Y - 1),
|
||||
MAP_VIEW_START_X + MAP_VIEW_WIDTH - 1 + MAP_GRID_X ,
|
||||
MAP_VIEW_START_Y+MAP_VIEW_HEIGHT-10+MAP_GRID_Y};
|
||||
|
||||
extern SGPRect gOldClipRect; // symbol already declared globally in renderworld.cpp (jonathanl)
|
||||
|
||||
@@ -1328,6 +1331,7 @@ BOOLEAN ShadeMapElem( INT16 sMapX, INT16 sMapY, INT32 iColor )
|
||||
|
||||
if( iColor != MAP_SHADE_BLACK )
|
||||
{
|
||||
//sScreenX +=1;
|
||||
// airspace
|
||||
/*
|
||||
if( sMapX == 1 )
|
||||
@@ -3943,7 +3947,10 @@ void RestoreBackgroundForMapGrid( INT16 sMapX, INT16 sMapY )
|
||||
void ClipBlitsToMapViewRegion( void )
|
||||
{
|
||||
// the standard mapscreen rectangle doesn't work for clipping while zoomed...
|
||||
SGPRect ZoomedMapScreenClipRect={ MAP_VIEW_START_X + MAP_GRID_X, MAP_VIEW_START_Y + MAP_GRID_Y - 1, MAP_VIEW_START_X + MAP_VIEW_WIDTH + MAP_GRID_X, MAP_VIEW_START_Y + MAP_VIEW_HEIGHT + MAP_GRID_Y - 10 };
|
||||
SGPRect ZoomedMapScreenClipRect={ MAP_VIEW_START_X + MAP_GRID_X,
|
||||
MAP_VIEW_START_Y + MAP_GRID_Y - 1,
|
||||
MAP_VIEW_START_X + MAP_VIEW_WIDTH + MAP_GRID_X,
|
||||
MAP_VIEW_START_Y + MAP_VIEW_HEIGHT + MAP_GRID_Y - 10 };
|
||||
SGPRect *pRectToUse;
|
||||
|
||||
if (fZoomFlag)
|
||||
|
||||
@@ -5257,9 +5257,9 @@ UINT32 MapScreenHandle(void)
|
||||
{
|
||||
fShowInventoryFlag = FALSE;
|
||||
// CHRISL: Added call to re-render the bottom panel
|
||||
RenderMapScreenInterfaceBottom ( TRUE );
|
||||
// RenderMapScreenInterfaceBottom ( TRUE );
|
||||
// set help text for item glow region
|
||||
SetRegionFastHelpText( &gCharInfoHandRegion, pMiscMapScreenMouseRegionHelpText[ 0 ] );
|
||||
//XXXj? SetRegionFastHelpText( &gCharInfoHandRegion, pMiscMapScreenMouseRegionHelpText[ 0 ] );
|
||||
}
|
||||
|
||||
|
||||
@@ -15377,7 +15377,8 @@ void RequestToggleMercInventoryPanel( void )
|
||||
else
|
||||
{
|
||||
// Headrock. New line forces InvBottom rerender when the inventory is opened and closed.
|
||||
RenderMapScreenInterfaceBottom ( TRUE );
|
||||
//RenderMapScreenInterfaceBottom ( TRUE );
|
||||
fMapScreenBottomDirty = TRUE;
|
||||
SetRegionFastHelpText( &gCharInfoHandRegion, pMiscMapScreenMouseRegionHelpText[ 0 ] );
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user