Resize screen auto adjustment
Instead of using a window fixed 640/480 static size, the width and height will be determined from the game's thread window size.
This commit is contained in:
parent
a9af6ab36f
commit
12b824903c
|
@ -926,8 +926,8 @@ int Graphics::height() const
|
||||||
|
|
||||||
void Graphics::resizeScreen(int width, int height)
|
void Graphics::resizeScreen(int width, int height)
|
||||||
{
|
{
|
||||||
width = clamp(width, 1, 640);
|
width = clamp(width, 1, p->threadData->config.defScreenW);
|
||||||
height = clamp(height, 1, 480);
|
height = clamp(height, 1, p->threadData->config.defScreenH);
|
||||||
|
|
||||||
Vec2i size(width, height);
|
Vec2i size(width, height);
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue