mirror of
https://github.com/1dot13/source.git
synced 2026-09-02 14:36:06 +02:00
Fixed graphic glitches, usually black screen or shadow boxes over the screen, appearing when inside the key ring popup box.
git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@9326 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -9922,17 +9922,15 @@ void EndItemStackPopupWithItemInHand( )
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void ShadowNIVPanel()
|
void ShadowNIVPanel(UINT16 startX1, UINT16 startY1)
|
||||||
{
|
{
|
||||||
// WANNE: Instead of blitting the sti overlap interface, shade the inventory. Looks much better and is the same than in OIV
|
// WANNE: Instead of blitting the sti overlap interface, shade the inventory. Looks much better and is the same than in OIV
|
||||||
UINT16 startX1, startX2, startX3;
|
UINT16 startX2, startX3;
|
||||||
UINT16 startY1, startY2, startY3;
|
UINT16 startY2, startY3;
|
||||||
UINT16 endX1, endX2, endX3;
|
UINT16 endX1, endX2, endX3;
|
||||||
UINT16 endY1, endY2, endY3;
|
UINT16 endY1, endY2, endY3;
|
||||||
|
|
||||||
// First rectangle
|
// First rectangle
|
||||||
startX1 = gsItemPopupInvX;
|
|
||||||
startY1 = gsItemPopupInvY;
|
|
||||||
endX1 = SCREEN_WIDTH - xResOffset;
|
endX1 = SCREEN_WIDTH - xResOffset;
|
||||||
endY1 = startY1 + 109;
|
endY1 = startY1 + 109;
|
||||||
ShadowVideoSurfaceRect( FRAME_BUFFER, startX1, startY1, endX1 , endY1 );
|
ShadowVideoSurfaceRect( FRAME_BUFFER, startX1, startY1, endX1 , endY1 );
|
||||||
@@ -9988,7 +9986,7 @@ void RenderItemStackPopup( BOOLEAN fFullRender )
|
|||||||
ShadowVideoSurfaceRect( FRAME_BUFFER, gsItemPopupInvX, gsItemPopupInvY, gsItemPopupInvX + gsItemPopupInvWidth , gsItemPopupInvY + gsItemPopupInvHeight );
|
ShadowVideoSurfaceRect( FRAME_BUFFER, gsItemPopupInvX, gsItemPopupInvY, gsItemPopupInvX + gsItemPopupInvWidth , gsItemPopupInvY + gsItemPopupInvHeight );
|
||||||
else if(UsingNewInventorySystem() == true && iResolution >= _800x600 /* && guiItemDescBoxBackground != 0 */ && guiCurrentScreen != MAP_SCREEN)
|
else if(UsingNewInventorySystem() == true && iResolution >= _800x600 /* && guiItemDescBoxBackground != 0 */ && guiCurrentScreen != MAP_SCREEN)
|
||||||
{
|
{
|
||||||
ShadowNIVPanel();
|
ShadowNIVPanel(gsItemPopupInvX, gsItemPopupInvY);
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
@@ -10252,7 +10250,7 @@ void RenderKeyRingPopup( BOOLEAN fFullRender )
|
|||||||
ShadowVideoSurfaceRect( FRAME_BUFFER, 0, gsKeyRingPopupInvY, gsKeyRingPopupInvX + gsKeyRingPopupInvWidth , gsKeyRingPopupInvY + gsKeyRingPopupInvHeight );
|
ShadowVideoSurfaceRect( FRAME_BUFFER, 0, gsKeyRingPopupInvY, gsKeyRingPopupInvX + gsKeyRingPopupInvWidth , gsKeyRingPopupInvY + gsKeyRingPopupInvHeight );
|
||||||
else if(UsingNewInventorySystem() == true && iResolution >= _800x600 /* && guiItemDescBoxBackground != 0 */ && guiCurrentScreen != MAP_SCREEN)
|
else if(UsingNewInventorySystem() == true && iResolution >= _800x600 /* && guiItemDescBoxBackground != 0 */ && guiCurrentScreen != MAP_SCREEN)
|
||||||
{
|
{
|
||||||
ShadowNIVPanel();
|
ShadowNIVPanel(gsKeyRingPopupInvX, gsKeyRingPopupInvY);
|
||||||
|
|
||||||
/*
|
/*
|
||||||
if (iResolution >= _640x480 && iResolution < _800x600)
|
if (iResolution >= _640x480 && iResolution < _800x600)
|
||||||
|
|||||||
Reference in New Issue
Block a user