583 |
|
} |
584 |
|
} |
585 |
|
|
586 |
+ |
#if ENABLE_VOSF |
587 |
|
#if REAL_ADDRESSING || DIRECT_ADDRESSING |
588 |
|
// If the blit function is null, i.e. just a copy of the buffer, |
589 |
|
// we first try to avoid the allocation of a temporary frame buffer |
600 |
|
the_buffer = (uint8 *)allocate_framebuffer(the_buffer_size); |
601 |
|
memset(the_buffer, 0, the_buffer_size); |
602 |
|
} |
603 |
< |
#elif ENABLE_VOSF |
603 |
> |
#else |
604 |
|
use_vosf = false; |
605 |
|
#endif |
606 |
+ |
#endif |
607 |
|
|
608 |
|
set_video_monitor(width, height, bytes_per_row, true); |
609 |
|
#if REAL_ADDRESSING || DIRECT_ADDRESSING |
1907 |
|
handle_palette_changes(depth, DISPLAY_DGA); |
1908 |
|
} |
1909 |
|
|
1910 |
+ |
#ifdef ENABLE_VOSF |
1911 |
|
#if REAL_ADDRESSING || DIRECT_ADDRESSING |
1912 |
|
static void video_refresh_dga_vosf(void) |
1913 |
|
{ |
1935 |
|
} |
1936 |
|
#endif |
1937 |
|
|
1935 |
– |
#ifdef ENABLE_VOSF |
1938 |
|
static void video_refresh_window_vosf(void) |
1939 |
|
{ |
1940 |
|
// Quit DGA mode if requested |
1959 |
|
#endif |
1960 |
|
} |
1961 |
|
} |
1962 |
< |
#endif |
1962 |
> |
#endif // def ENABLE_VOSF |
1963 |
|
|
1964 |
|
static void video_refresh_window_static(void) |
1965 |
|
{ |
2000 |
|
{ |
2001 |
|
// TODO: set up specialised 8bpp VideoRefresh handlers ? |
2002 |
|
if (display_type == DISPLAY_DGA) { |
2003 |
< |
#if REAL_ADDRESSING || DIRECT_ADDRESSING |
2003 |
> |
#if ENABLE_VOSF && (REAL_ADDRESSING || DIRECT_ADDRESSING) |
2004 |
|
if (use_vosf) |
2005 |
|
video_refresh = video_refresh_dga_vosf; |
2006 |
|
else |