This commit is contained in:
Vincent Wei
2023-07-25 10:43:20 +08:00
parent c609e2e5b1
commit 0b4a5a1c17
2 changed files with 3 additions and 1 deletions

View File

@@ -2347,6 +2347,7 @@ int init_minigui_printf (int (*output_char) (int ch),
#define _ERR_PRINTF(fmt, ...) \
do { \
TCS_RED (stderr); \
fprintf (stderr, "%s: ", __FUNCTION__); \
fprintf (stderr, fmt, ##__VA_ARGS__); \
TCS_NONE (stderr); \
} while (0)

View File

@@ -2449,7 +2449,8 @@ static void update_real_screen_helper(_THIS)
#endif
BOOL hw_ok = FALSE;
if (real_buff && shadow_buff && vdata->driver_ops->copy_buff) {
if (real_buff && shadow_buff && vdata->driver &&
vdata->driver_ops->copy_buff) {
GAL_Rect rect = {
this->hidden->update_rect.left,
this->hidden->update_rect.top,