提交 44f720e4 编写于 作者: R Romain Vimont

Log new size on auto-resize request

On "resize to fit" and "resize to pixel-perfect", log the new size.
上级 125c5561
......@@ -491,7 +491,8 @@ screen_resize_to_fit(struct screen *screen) {
struct size optimal_size =
get_optimal_window_size(screen, screen->content_size);
SDL_SetWindowSize(screen->window, optimal_size.width, optimal_size.height);
LOGD("Resized to optimal size");
LOGD("Resized to optimal size: %ux%u", optimal_size.width,
optimal_size.height);
}
void
......@@ -507,7 +508,8 @@ screen_resize_to_pixel_perfect(struct screen *screen) {
struct size content_size = screen->content_size;
SDL_SetWindowSize(screen->window, content_size.width, content_size.height);
LOGD("Resized to pixel-perfect");
LOGD("Resized to pixel-perfect: %ux%u", content_size.width,
content_size.height);
}
void
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册