qt/home.cc: set fb_w&fb_h in function framebuffer_init,same as android (#19765)

old-commit-hash: 7a6ec83a367e1dd2bfc8dba7c17261b3cfbbe2b1
This commit is contained in:
Dean Lee
2021-01-15 18:57:26 +08:00
committed by GitHub
parent 3c9142a709
commit dc8a64227e
+2 -2
View File
@@ -213,8 +213,6 @@ void GLWindow::initializeGL() {
ui_state = new UIState();
ui_state->sound = &sound;
ui_state->fb_w = vwp_w;
ui_state->fb_h = vwp_h;
ui_init(ui_state);
wake();
@@ -273,5 +271,7 @@ void GLWindow::wake() {
FramebufferState* framebuffer_init(const char* name, int32_t layer, int alpha,
int *out_w, int *out_h) {
*out_w = vwp_w;
*out_h = vwp_h;
return (FramebufferState*)1; // not null
}