2
0
mirror of https://github.com/AxioDL/metaforce.git synced 2025-12-09 09:47:43 +00:00

Windows fixes

This commit is contained in:
Jack Andersen
2017-03-19 20:59:46 -10:00
parent 8e7773aa94
commit c8e22a6873
6 changed files with 8 additions and 6 deletions

View File

@@ -6,6 +6,7 @@
#include "AutoMapper/CMapArea.hpp"
#include "zeus/CEulerAngles.hpp"
#include "World/CPlayer.hpp"
#include "Particle/CGenDescription.hpp"
namespace urde
{
@@ -118,8 +119,8 @@ zeus::CVector2i CAutoMapper::GetMiniMapViewportSize()
{
float scaleX = g_Viewport.x8_width / 640.f;
float scaleY = g_Viewport.xc_height / 480.f;
return {scaleX * g_tweakAutoMapper->GetMiniMapViewportWidth(),
scaleY * g_tweakAutoMapper->GetMiniMapViewportHeight()};
return {int(scaleX * g_tweakAutoMapper->GetMiniMapViewportWidth()),
int(scaleY * g_tweakAutoMapper->GetMiniMapViewportHeight())};
}
float CAutoMapper::GetMapAreaMiniMapDrawAlphaSurfaceVisited(const CStateManager& stateMgr)