Add missing implementations
This commit is contained in:
parent
fab99b8309
commit
34fa1a89ce
|
|
@ -324,13 +324,19 @@ void SetWindowMaxSize(int width, int height)
|
||||||
// Set window dimensions
|
// Set window dimensions
|
||||||
void SetWindowSize(int width, int height)
|
void SetWindowSize(int width, int height)
|
||||||
{
|
{
|
||||||
TRACELOG(LOG_WARNING, "SetWindowSize() not available on target platform");
|
SDL_SetWindowSize(platform.window, width, height);
|
||||||
|
|
||||||
|
CORE.Window.screen.width = width;
|
||||||
|
CORE.Window.screen.height = height;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set window opacity, value opacity is between 0.0 and 1.0
|
// Set window opacity, value opacity is between 0.0 and 1.0
|
||||||
void SetWindowOpacity(float opacity)
|
void SetWindowOpacity(float opacity)
|
||||||
{
|
{
|
||||||
TRACELOG(LOG_WARNING, "SetWindowOpacity() not available on target platform");
|
if (opacity >= 1.0f) opacity = 1.0f;
|
||||||
|
else if (opacity <= 0.0f) opacity = 0.0f;
|
||||||
|
|
||||||
|
SDL_SetWindowOpacity(platform.window, opacity);
|
||||||
}
|
}
|
||||||
|
|
||||||
// Set window focused
|
// Set window focused
|
||||||
|
|
@ -349,8 +355,11 @@ void *GetWindowHandle(void)
|
||||||
// Get number of monitors
|
// Get number of monitors
|
||||||
int GetMonitorCount(void)
|
int GetMonitorCount(void)
|
||||||
{
|
{
|
||||||
TRACELOG(LOG_WARNING, "GetMonitorCount() not implemented on target platform");
|
int monitorCount = 0;
|
||||||
return 1;
|
|
||||||
|
monitorCount = SDL_GetNumVideoDisplays();
|
||||||
|
|
||||||
|
return monitorCount;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Get number of monitors
|
// Get number of monitors
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user