MCPcopy Create free account
hub / github.com/TorqueGameEngines/Torque3D / getMonitorRect

Method getMonitorRect

Engine/source/windowManager/sdl/sdlWindowMgr.cpp:136–146  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136RectI PlatformWindowManagerSDL::getMonitorRect(U32 index)
137{
138 SDL_Rect sdlRect;
139 if (0 != SDL_GetDisplayBounds(index, &sdlRect))
140 {
141 Con::errorf("SDL_GetDisplayBounds() failed: %s", SDL_GetError());
142 return RectI(0, 0, 0, 0);
143 }
144
145 return RectI(sdlRect.x, sdlRect.y, sdlRect.w, sdlRect.h);
146}
147
148RectI PlatformWindowManagerSDL::getMonitorUsableRect(U32 index)
149{

Callers 1

guiCanvas.cppFile · 0.45

Calls 4

SDL_GetDisplayBoundsFunction · 0.85
SDL_GetErrorFunction · 0.85
errorfFunction · 0.50
RectIClass · 0.50

Tested by

no test coverage detected