mirror of
https://github.com/TwilitRealm/dusklight
synced 2026-09-12 11:35:09 -04:00
Merge pull request #2421 from Sirius902/minimap-fix
Fix minimap pulsing effect
This commit is contained in:
@@ -17,6 +17,7 @@
|
||||
#include "m_Do/m_Do_controller_pad.h"
|
||||
#include "d/d_camera.h"
|
||||
#if TARGET_PC
|
||||
#include "JSystem/JUtility/JUTPalette.h"
|
||||
#include "dusk/settings.h"
|
||||
#include <algorithm>
|
||||
#endif
|
||||
@@ -644,6 +645,11 @@ void dMeterMap_c::draw() {
|
||||
mMapJ2DPicture->setAlpha(alpha);
|
||||
|
||||
#if TARGET_PC
|
||||
// Ensure minimap palette gets reuploaded since it is modified for the pulsating border
|
||||
// effect.
|
||||
JUTPalette* pPalette = mMapJ2DPicture->getTexture(0)->getPalette();
|
||||
pPalette->dataUploaded();
|
||||
|
||||
// Scale the minimap with the user HUD scale and shift down so its bottom-left
|
||||
// corner stays anchored to the same screen position as at scale 1.0.
|
||||
const f32 userHudScale = dGetUserHudScale();
|
||||
|
||||
Reference in New Issue
Block a user