Skip to content

Commit

Permalink
[video]: Misc. fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mrpapersonic committed Jun 21, 2022
1 parent b35c438 commit 00e3e63
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
3 changes: 1 addition & 2 deletions include/video.h
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
Expand Down
5 changes: 3 additions & 2 deletions schism/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 00e3e63

Please sign in to comment.