Incremental fix on my Navigator work - switched out global to JGE vars actualWidth/Height to be real accessible members of the JRenderer instance, so that we can actually access what the real display width is from within the MTG project. This makes the fix for enchantment zone targetting work when the window is resized on Win32.
This commit is contained in:
+25
-1
@@ -73,7 +73,8 @@ protected:
|
||||
void InitRenderer();
|
||||
void DestroyRenderer();
|
||||
|
||||
|
||||
float mActualWidth;
|
||||
float mActualHeight;
|
||||
|
||||
public:
|
||||
|
||||
@@ -524,6 +525,29 @@ public:
|
||||
//////////////////////////////////////////////////////////////////////////
|
||||
void SetImageFilter(JImageFilter* imageFilter);
|
||||
|
||||
/**
|
||||
** Set/Get methods for the actual display screen size.
|
||||
*/
|
||||
inline void SetActualWidth(float inWidth)
|
||||
{
|
||||
mActualWidth = inWidth;
|
||||
}
|
||||
|
||||
inline void SetActualHeight(float inHeight)
|
||||
{
|
||||
mActualHeight = inHeight;
|
||||
}
|
||||
|
||||
inline float GetActualWidth()
|
||||
{
|
||||
return mActualWidth;
|
||||
}
|
||||
|
||||
inline float GetActualHeight()
|
||||
{
|
||||
return mActualHeight;
|
||||
}
|
||||
|
||||
private:
|
||||
|
||||
struct TextureInfo
|
||||
|
||||
Reference in New Issue
Block a user