Linux/SDL2: Add window position getter function
parent
745ad55aa2
commit
d42936ee6f
|
|
@ -1040,9 +1040,14 @@ BOOL LLWindowSDL::getFullscreen()
|
|||
|
||||
BOOL LLWindowSDL::getPosition(LLCoordScreen *position)
|
||||
{
|
||||
// *FIX: can anything be done with this?
|
||||
position->mX = 0;
|
||||
position->mY = 0;
|
||||
int x;
|
||||
int y;
|
||||
|
||||
SDL_GetWindowPosition(mWindow, &x, &y);
|
||||
|
||||
position->mX = x;
|
||||
position->mY = y;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue