mirror of
https://github.com/dragonpilot/dragonpilot.git
synced 2026-03-03 01:23:53 +08:00
qt/home.cc: set fb_w&fb_h in function framebuffer_init,same as android (#19765)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user