mirror of
https://git.code.sf.net/p/quake/quakeforge
synced 2024-11-22 20:41:20 +00:00
[vid] Fix some naming inconsistencies
This commit is contained in:
parent
81a837da0f
commit
8ec781a434
5 changed files with 7 additions and 7 deletions
|
@ -8,7 +8,7 @@ typedef struct vid_internal_s {
|
|||
int (*surf_cache_size) (int width, int height);
|
||||
void (*flush_caches) (void);
|
||||
void (*init_caches) (void *cache, int size);
|
||||
void (*do_screen_buffer) (void);
|
||||
void (*init_buffers) (void);
|
||||
void (*set_palette) (const byte *palette);
|
||||
|
||||
void (*choose_visual) (void);
|
||||
|
|
|
@ -296,8 +296,8 @@ VID_InitBuffers (void)
|
|||
free (viddef.surfcache);
|
||||
viddef.surfcache = NULL;
|
||||
}
|
||||
if (viddef.vid_internal->do_screen_buffer) {
|
||||
viddef.vid_internal->do_screen_buffer ();
|
||||
if (viddef.vid_internal->init_buffers) {
|
||||
viddef.vid_internal->init_buffers ();
|
||||
} else {
|
||||
// Free the old screen buffer
|
||||
if (viddef.buffer) {
|
||||
|
|
|
@ -103,7 +103,7 @@ sdl_set_palette (const byte *palette)
|
|||
}
|
||||
|
||||
static void
|
||||
do_screen_buffer (void)
|
||||
sdl_init_buffers (void)
|
||||
{
|
||||
}
|
||||
|
||||
|
@ -118,7 +118,7 @@ sdl_set_vid_mode (sw_ctx_t *ctx)
|
|||
// now know everything we need to know about the buffer
|
||||
VGA_width = viddef.width;
|
||||
VGA_height = viddef.height;
|
||||
viddef.vid_internal->do_screen_buffer = do_screen_buffer;
|
||||
viddef.vid_internal->init_buffers = sdl_init_buffers;
|
||||
VGA_pagebase = viddef.buffer = sdl_screen->pixels;
|
||||
VGA_rowbytes = viddef.rowbytes = sdl_screen->pitch;
|
||||
viddef.conbuffer = viddef.buffer;
|
||||
|
|
|
@ -213,7 +213,7 @@ win_create_context (sw_ctx_t *ctx)
|
|||
|
||||
Win_CreateDriver ();
|
||||
|
||||
viddef.vid_internal->do_screen_buffer = win_init_bufers;
|
||||
viddef.vid_internal->init_buffers = win_init_bufers;
|
||||
VID_InitBuffers ();
|
||||
}
|
||||
|
||||
|
|
|
@ -518,7 +518,7 @@ x11_create_context (sw_ctx_t *ctx)
|
|||
x_shmeventtype = XShmGetEventBase (x_disp) + ShmCompletion;
|
||||
}
|
||||
|
||||
viddef.vid_internal->do_screen_buffer = x11_init_buffers;
|
||||
viddef.vid_internal->init_buffers = x11_init_buffers;
|
||||
VID_InitBuffers ();
|
||||
|
||||
// XSynchronize (x_disp, False);
|
||||
|
|
Loading…
Reference in a new issue