mirror of
https://github.com/1dot13/source.git
synced 2026-07-29 13:52:17 +02:00
- HAM 5: Bugfixes
o Fixed a few positions for the sector inventory in widescreen resolution o TODO: The file "Map Screen Interface Map Inventory.cpp" needs to be adjusted (The "xResOffset" needs to be added to the x-positions of the images) for widescreen resolutions git-svn-id: https://ja2svn.mooo.com/source/ja2/trunk/GameSource/ja2_v1.13/Build@5187 3b4a5df2-a311-0410-b5c6-a8a6f20db521
This commit is contained in:
@@ -3643,8 +3643,8 @@ BOOLEAN TraceCharAnimatedRoute( PathStPtr pPath, BOOLEAN fCheckFlag, BOOLEAN fFo
|
||||
usArrowWidth = hMapHandle->pETRLEObject[ uiArrowNumToDraw ].usWidth;
|
||||
usArrowHeight = hMapHandle->pETRLEObject[ uiArrowNumToDraw ].usHeight;
|
||||
|
||||
BltVideoObject(FRAME_BUFFER, hMapHandle, uiArrowNumToDraw, iArrowX, iArrowY, VO_BLT_SRCTRANSPARENCY, NULL );
|
||||
InvalidateRegion( iArrowX, iArrowY, iArrowX + usArrowWidth, iArrowY + usArrowHeight );
|
||||
BltVideoObject(FRAME_BUFFER, hMapHandle, uiArrowNumToDraw, iArrowX + xResOffset, iArrowY, VO_BLT_SRCTRANSPARENCY, NULL );
|
||||
InvalidateRegion( iArrowX + xResOffset, iArrowY, iArrowX + usArrowWidth + xResOffset, iArrowY + usArrowHeight );
|
||||
|
||||
//ARM who knows what it should return here?
|
||||
return FALSE;
|
||||
|
||||
@@ -4767,13 +4767,13 @@ UINT32 MapScreenHandle(void)
|
||||
// HEADROCK HAM 5: New pathing arrows may replace the above eventually, but for now a separate variable will do.
|
||||
VObjectDesc.fCreateFlags=VOBJECT_CREATE_FROMFILE;
|
||||
|
||||
if (iResolution == 0)
|
||||
if (iResolution >= _640x480 && iResolution < _800x600)
|
||||
FilenameForBPP("INTERFACE\\map_pathing_arrows_640.sti", VObjectDesc.ImageFile);
|
||||
else if (iResolution == 1)
|
||||
else if (iResolution < _1024x768)
|
||||
FilenameForBPP("INTERFACE\\map_pathing_arrows_800.sti", VObjectDesc.ImageFile);
|
||||
else if (iResolution == 2)
|
||||
else
|
||||
FilenameForBPP("INTERFACE\\map_pathing_arrows_1024.sti", VObjectDesc.ImageFile);
|
||||
|
||||
|
||||
CHECKF(AddVideoObject(&VObjectDesc, &guiMapPathingArrows));
|
||||
|
||||
VObjectDesc.fCreateFlags=VOBJECT_CREATE_FROMFILE;
|
||||
|
||||
Reference in New Issue
Block a user