Changeset 25966 for ps/trunk/source/gui/CGUI.cpp
- Timestamp:
- Oct 17, 2021, 12:58:51 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/gui/CGUI.cpp
r25746 r25966 43 43 #include "ps/Profile.h" 44 44 #include "ps/Pyrogenesis.h" 45 45 46 #include "ps/XML/Xeromyces.h" 46 47 #include "scriptinterface/ScriptContext.h" … … 155 156 // constant conversions when operating in a 156 157 // float-based environment. 157 m_MousePos = CVector2D((float)ev->ev.motion.x / g_ GuiScale, (float)ev->ev.motion.y / g_GuiScale);158 m_MousePos = CVector2D((float)ev->ev.motion.x / g_); 158 159 159 160 SGUIMessage msg(GUIM_MOUSE_MOTION); … … 180 181 if (ev->ev.type == SDL_MOUSEBUTTONDOWN || ev->ev.type == SDL_MOUSEBUTTONUP) 181 182 { 182 m_MousePos = CVector2D((float)ev->ev.button.x / g_ GuiScale, (float)ev->ev.button.y / g_GuiScale);183 m_MousePos = CVector2D((float)ev->ev.button.x / g_); 183 184 } 184 185 … … 421 422 CSize2D CGUI::GetWindowSize() const 422 423 { 423 return CSize2D{static_cast<float>(g_xres) / g_ GuiScale, static_cast<float>(g_yres) / g_GuiScale};424 return CSize2D{static_cast<float>(g_xres) / g_}; 424 425 } 425 426
Note:
See TracChangeset
for help on using the changeset viewer.