Show
Ignore:
Timestamp:
05/17/09 10:39:07 (3 years ago)
Author:
mwhitworth
Message:

Start updating Xynth to use dynamic libraries for drivers, remove old configuration code and replace with registry equivalents.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • Whitix/trunk/user/xynth/src/server/video/vga/server.c

    r1668 r2049  
    161161} 
    162162 
    163 int s_video_vga_server_init (s_server_conf_t *cfg) 
     163/* VGA is the lowest common denominator for video output. Every PC supports it. */ 
     164int VgaProbe(s_server_t* server) 
     165{ 
     166        return 1; 
     167} 
     168 
     169int s_video_vga_server_init (s_server_t* server) 
    164170{ 
    165171        printf("Loading VGA driver.\n"); 
     
    195201        server->window->surface->linear_mem_size=VGA_SIZE; 
    196202 
    197         if (!noGraphics) 
    198                 VgaInit(); 
     203        VgaInit(); 
    199204 
    200205        return 0; 
    201206} 
    202207 
    203 s_video_driver_t s_video_vga = { 
     208s_video_driver_t videoDriver = { 
    204209        "vga", 
    205210        "/System/Devices/Special/Memory", 
    206211        s_video_vga_server_init, 
     212        VgaProbe, 
    207213        s_video_vga_server_uninit, 
    208214};