Changeset 25966 for ps/trunk/source/gui/CGUIText.cpp
- Timestamp:
- Oct 17, 2021, 12:58:51 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
ps/trunk/source/gui/CGUIText.cpp
r25645 r25966 27 27 #include "gui/SettingTypes/CGUIString.h" 28 28 #include "ps/CStrInternStatic.h" 29 29 30 #include "renderer/Renderer.h" 30 31 … … 32 33 33 34 extern int g_xres, g_yres; 34 extern float g_GuiScale;35 35 36 36 // TODO Gee: CRect => CPoint ? … … 440 440 clipping.right = std::floor(clipping.right); 441 441 442 442 443 glEnable(GL_SCISSOR_TEST); 443 444 glScissor( 444 std::ceil(clipping.left * g_GuiScale),445 std::ceil(g_yres - clipping.bottom * g_GuiScale),446 std::floor(clipping.GetWidth() * g_GuiScale),447 std::floor(clipping.GetHeight() * g_GuiScale));445 std::ceil(clipping.left * cale), 446 std::ceil(g_yres - clipping.bottom * cale), 447 std::floor(clipping.GetWidth() * cale), 448 std::floor(clipping.GetHeight() * cale)); 448 449 } 449 450
Note:
See TracChangeset
for help on using the changeset viewer.