WARNING: THIS SITE IS A MIRROR OF GITHUB.COM / IT CANNOT LOGIN OR REGISTER ACCOUNTS / THE CONTENTS ARE PROVIDED AS-IS / THIS SITE ASSUMES NO RESPONSIBILITY FOR ANY DISPLAYED CONTENT OR LINKS / IF YOU FOUND SOMETHING MAY NOT GOOD FOR EVERYONE, CONTACT ADMIN AT ilovescratch@foxmail.com
Skip to content

Commit c4ea2fb

Browse files
committed
new size
1 parent 4d21e64 commit c4ea2fb

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

clients/oooooooo/src/Display.cpp

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ void Display::start() {
6565
SDL_SetHint(SDL_HINT_VIDEO_HIGHDPI_DISABLED, "0");
6666
#endif
6767

68-
width_ = 1080;
68+
width_ = 1450;
6969
height_ = 815;
7070
window_ = SDL_CreateWindow("oooooooo", SDL_WINDOWPOS_CENTERED,
7171
SDL_WINDOWPOS_CENTERED, width_, height_,
@@ -267,8 +267,9 @@ void Display::renderLoop() {
267267
scaleX = static_cast<float>(drawableWidth) / windowWidth;
268268
scaleY = static_cast<float>(drawableHeight) / windowHeight;
269269

270-
std::cout << "Window resized. New DPI Scaling: " << scaleX << "x"
271-
<< scaleY << std::endl;
270+
std::cout << "Window resized to: " << windowWidth << "x" << windowHeight
271+
<< " (drawable: " << drawableWidth << "x" << drawableHeight
272+
<< ", DPI scaling: " << scaleX << "x" << scaleY << ")" << std::endl;
272273
}
273274

274275
// Update width and height

0 commit comments

Comments
 (0)