mirror of
https://github.com/1dot13/source.git
synced 2026-07-22 13:40:22 +02:00
Fixes for more structures not being initialized.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@1065 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -1863,7 +1863,10 @@ void BeginOverlayMessage( UINT32 uiFont, STR16 pFontString, ... )
|
||||
|
||||
if ( giPopupSlideMessageOverlay == -1 )
|
||||
{
|
||||
// Set Overlay
|
||||
// WDS - bug fix: VideoOverlayDesc must be initialized! - 07/16/2007
|
||||
memset( &VideoOverlayDesc, 0, sizeof( VIDEO_OVERLAY_DESC ) );
|
||||
|
||||
// Set Overlay
|
||||
VideoOverlayDesc.sLeft = ( SCREEN_WIDTH - gusOverlayPopupBoxWidth ) / 2;
|
||||
VideoOverlayDesc.sTop = 100;
|
||||
VideoOverlayDesc.sRight = VideoOverlayDesc.sLeft + gusOverlayPopupBoxWidth;
|
||||
@@ -2856,6 +2859,9 @@ void BeginMapUIMessage( UINT8 ubPosition, STR16 pFontString, ... )
|
||||
|
||||
if ( giUIMessageOverlay == -1 )
|
||||
{
|
||||
// WDS - bug fix: VideoOverlayDesc must be initialized! - 07/16/2007
|
||||
memset( &VideoOverlayDesc, 0, sizeof( VIDEO_OVERLAY_DESC ) );
|
||||
|
||||
// Set Overlay
|
||||
VideoOverlayDesc.sLeft = 20 + MAP_VIEW_START_X + ( MAP_VIEW_WIDTH - gusUIMessageWidth ) / 2;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user