mirror of
https://github.com/1dot13/source.git
synced 2026-09-09 14:46:05 +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 )
|
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.sLeft = ( SCREEN_WIDTH - gusOverlayPopupBoxWidth ) / 2;
|
||||||
VideoOverlayDesc.sTop = 100;
|
VideoOverlayDesc.sTop = 100;
|
||||||
VideoOverlayDesc.sRight = VideoOverlayDesc.sLeft + gusOverlayPopupBoxWidth;
|
VideoOverlayDesc.sRight = VideoOverlayDesc.sLeft + gusOverlayPopupBoxWidth;
|
||||||
@@ -2856,6 +2859,9 @@ void BeginMapUIMessage( UINT8 ubPosition, STR16 pFontString, ... )
|
|||||||
|
|
||||||
if ( giUIMessageOverlay == -1 )
|
if ( giUIMessageOverlay == -1 )
|
||||||
{
|
{
|
||||||
|
// WDS - bug fix: VideoOverlayDesc must be initialized! - 07/16/2007
|
||||||
|
memset( &VideoOverlayDesc, 0, sizeof( VIDEO_OVERLAY_DESC ) );
|
||||||
|
|
||||||
// Set Overlay
|
// Set Overlay
|
||||||
VideoOverlayDesc.sLeft = 20 + MAP_VIEW_START_X + ( MAP_VIEW_WIDTH - gusUIMessageWidth ) / 2;
|
VideoOverlayDesc.sLeft = 20 + MAP_VIEW_START_X + ( MAP_VIEW_WIDTH - gusUIMessageWidth ) / 2;
|
||||||
|
|
||||||
|
|||||||
@@ -226,6 +226,9 @@ BOOLEAN CreateStringVideoOverlay( ScrollStringStPtr pStringSt, UINT16 usX, UINT1
|
|||||||
{
|
{
|
||||||
VIDEO_OVERLAY_DESC VideoOverlayDesc;
|
VIDEO_OVERLAY_DESC VideoOverlayDesc;
|
||||||
|
|
||||||
|
// WDS - bug fix: VideoOverlayDesc must be initialized! - 07/16/2007
|
||||||
|
memset( &VideoOverlayDesc, 0, sizeof( VIDEO_OVERLAY_DESC ) );
|
||||||
|
|
||||||
// SET VIDEO OVERLAY
|
// SET VIDEO OVERLAY
|
||||||
VideoOverlayDesc.sLeft = usX;
|
VideoOverlayDesc.sLeft = usX;
|
||||||
VideoOverlayDesc.sTop = usY;
|
VideoOverlayDesc.sTop = usY;
|
||||||
|
|||||||
@@ -164,6 +164,9 @@ UINT32 MainGameScreenInit(void)
|
|||||||
|
|
||||||
SetRenderFlags(RENDER_FLAG_FULL);
|
SetRenderFlags(RENDER_FLAG_FULL);
|
||||||
|
|
||||||
|
// WDS - bug fix: VideoOverlayDesc must be initialized! - 07/16/2007
|
||||||
|
memset( &VideoOverlayDesc, 0, sizeof( VIDEO_OVERLAY_DESC ) );
|
||||||
|
|
||||||
// Init Video Overlays
|
// Init Video Overlays
|
||||||
// FIRST, FRAMERATE
|
// FIRST, FRAMERATE
|
||||||
VideoOverlayDesc.sLeft = 0;
|
VideoOverlayDesc.sLeft = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user