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.42 by cebix, 2001-06-28T21:20:00Z vs.
Revision 1.43 by gbeauche, 2001-06-28T22:06:18Z

# Line 803 | Line 803 | bool VideoInit(bool classic)
803          classic_mode = classic;
804  
805   #ifdef ENABLE_VOSF
806        // Open /dev/zero
807        zero_fd = open("/dev/zero", O_RDWR);
808        if (zero_fd < 0) {
809        char str[256];
810                sprintf(str, GetString(STR_NO_DEV_ZERO_ERR), strerror(errno));
811                ErrorAlert(str);
812        return false;
813        }
814        
806          // Zero the mainBuffer structure
807          mainBuffer.dirtyPages = 0;
808          mainBuffer.pageInfo = 0;
# Line 1083 | Line 1074 | static void video_close(void)
1074   void VideoExit(void)
1075   {
1076          video_close();
1086
1087 #ifdef ENABLE_VOSF
1088        // Close /dev/zero
1089        if (zero_fd > 0)
1090                close(zero_fd);
1091 #endif
1077   }
1078  
1079  

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines