From 00e3e630d64f0d9862b305fe85d2783a003732ab Mon Sep 17 00:00:00 2001 From: Paper <37962225+mrpapersonic@users.noreply.github.com> Date: Tue, 21 Jun 2022 18:32:38 -0400 Subject: [PATCH] [video]: Misc. fixes --- include/video.h | 3 +-- schism/main.c | 5 +++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/include/video.h b/include/video.h index 61df9c603..823528c86 100644 --- a/include/video.h +++ b/include/video.h @@ -37,8 +37,6 @@ struct vgamem_overlay { int width, height; /* in pixels; signed to avoid bugs elsewhere */ }; -void vgamem_lock(void); -void vgamem_unlock(void); void vgamem_flip(void); void vgamem_ovl_alloc(struct vgamem_overlay *n); @@ -62,6 +60,7 @@ void video_startup(void); void video_shutdown(void); void video_report(void); void video_refresh(void); +void video_update(void); void video_colors(unsigned char palette[16][3]); void video_resize(unsigned int width, unsigned int height); void video_fullscreen(int new_fs_flag); diff --git a/schism/main.c b/schism/main.c index 537251752..8a89f62a1 100644 --- a/schism/main.c +++ b/schism/main.c @@ -165,12 +165,13 @@ static void handle_window_event(SDL_WindowEvent *w) case SDL_WINDOWEVENT_EXPOSED: status.flags |= (NEED_UPDATE); break; + case SDL_WINDOWEVENT_MOVED: + video_update(); + break; default: #if 0 /* ignored currently */ SDL_WINDOWEVENT_NONE, /**< Never used */ - SDL_WINDOWEVENT_MOVED, /**< Window has been moved to data1, data2 - */ SDL_WINDOWEVENT_MINIMIZED, /**< Window has been minimized */ SDL_WINDOWEVENT_MAXIMIZED, /**< Window has been maximized */ SDL_WINDOWEVENT_RESTORED, /**< Window has been restored to normal size