ViewVC Help
View File | Revision Log | Show Annotations | Revision Graph | Root Listing
root/cebix/BasiliskII/src/Unix/video_x.cpp
(Generate patch)

Comparing BasiliskII/src/Unix/video_x.cpp (file contents):
Revision 1.4 by cebix, 1999-10-04T21:07:18Z vs.
Revision 1.5 by cebix, 1999-10-05T14:59:46Z

# Line 142 | Line 142 | extern void SysMountFirstFloppy(void);
142   // Set VideoMonitor according to video mode
143   void set_video_monitor(int width, int height, int bytes_per_row, bool native_byte_order)
144   {
145 <        int layout;
145 >        int layout = FLAYOUT_DIRECT;
146          switch (depth) {
147                  case 1:
148                          layout = FLAYOUT_DIRECT;
# Line 470 | Line 470 | bool VideoInit(bool classic)
470  
471   #if ENABLE_DGA
472          // DGA available?
473 <        int dga_flags = 0;
474 <        XF86DGAQueryDirectVideo(x_display, screen, &dga_flags);
475 <        has_dga = dga_flags & XF86DGADirectPresent;
473 >        int event_base, error_base;
474 >        if (XF86DGAQueryExtension(x_display, &event_base, &error_base)) {
475 >                int dga_flags = 0;
476 >                XF86DGAQueryDirectVideo(x_display, screen, &dga_flags);
477 >                has_dga = dga_flags & XF86DGADirectPresent;
478 >        } else
479 >                has_dga = false;
480   #endif
481  
482          // Find black and white colors

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines