This commit is contained in:
2026-04-25 20:14:28 +08:00
3 changed files with 92 additions and 93 deletions

View File

@@ -113,8 +113,7 @@ int ush_uwm_create_window(ush_uwm_window *win) {
int ush_uwm_present_window(const ush_uwm_window *win) { int ush_uwm_present_window(const ush_uwm_window *win) {
cleonos_wm_present_req req; cleonos_wm_present_req req;
if (win == (const ush_uwm_window *)0 || win->alive == 0 || win->id == 0ULL || if (win == (const ush_uwm_window *)0 || win->alive == 0 || win->id == 0ULL || win->pixels == (ush_uwm_u32 *)0) {
win->pixels == (ush_uwm_u32 *)0) {
return 0; return 0;
} }