Fix Raspberry Pi Build - EGL_DISPMANX_WINDOW_T not defined (#3470)

See: https://forum.qt.io/topic/88588/qtbase-compilation-error-with-device-linux-rasp-pi3-g-qeglfskmsgbmwindow-cpp/9 for details of the fix
This commit is contained in:
SnapperTT
2025-10-08 03:33:05 +10:30
committed by GitHub
parent b4dbc129f3
commit fca2c0c609

View File

@@ -250,6 +250,12 @@ WL_EGL_IMPORT
}; };
# if BX_PLATFORM_RPI # if BX_PLATFORM_RPI
typedef uint32_t DISPMANX_ELEMENT_HANDLE_T;
typedef struct {
DISPMANX_ELEMENT_HANDLE_T element;
int width; /* This is necessary because dispmanx elements are not queriable. */
int height;
} EGL_DISPMANX_WINDOW_T;
static EGL_DISPMANX_WINDOW_T s_dispmanWindow; static EGL_DISPMANX_WINDOW_T s_dispmanWindow;
# endif // BX_PLATFORM_RPI # endif // BX_PLATFORM_RPI
@@ -384,7 +390,7 @@ WL_EGL_IMPORT
s_dispmanWindow.element = dispmanElement; s_dispmanWindow.element = dispmanElement;
s_dispmanWindow.width = _width; s_dispmanWindow.width = _width;
s_dispmanWindow.height = _height; s_dispmanWindow.height = _height;
nwh = &s_dispmanWindow; nwh = (EGLNativeWindowType) &s_dispmanWindow;
vc_dispmanx_update_submit_sync(dispmanUpdate); vc_dispmanx_update_submit_sync(dispmanUpdate);
# endif // BX_PLATFORM_ANDROID # endif // BX_PLATFORM_ANDROID