Changeset 26495 for titan/titan/fb.h
- Timestamp:
- 02/26/14 21:18:25 (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
titan/titan/fb.h
r26471 r26495 193 193 fd = open(fbdev, O_RDWR); 194 194 195 // blinking work start 196 if(checkbox("ATEMIO5000") == 1) 197 { 198 if (fd < 0) 199 { 195 // blinking work start 196 #ifdef EPLAYER4 197 if (fd < 0) 198 { 200 199 perror(fbdev); 201 200 goto nolfb; 202 201 } 203 } 204 202 #endif 203 // blinking work end 205 204 206 205 if(fd == -1) … … 241 240 } 242 241 243 if (checkbox("ATEMIO5000") == 1 && var_screeninfo.bits_per_pixel != 32) 242 #ifdef EPLAYER4 243 if (var_screeninfo.bits_per_pixel != 32) 244 244 { 245 245 debug(100, "Only 32 bit per pixel supported. Framebuffer currently use %d", var_screeninfo.bits_per_pixel); … … 247 247 return 0; 248 248 } 249 #endif 249 250 250 251 … … 281 282 void closefb() 282 283 { 283 if(checkbox("ATEMIO5000") == 1) 284 { 285 286 287 288 289 290 291 292 293 294 295 296 297 298 } 284 285 #ifdef EPLAYER4 286 if(lfb) 287 { 288 debug(100, "ms_sync"); 289 msync(lfb, fix_screeninfo.smem_len, MS_SYNC); 290 munmap(lfb, fix_screeninfo.smem_len); 291 } 292 if(fb->fd >= 0) 293 { 294 debug(100, "close"); 295 disablemanualblit(); 296 close(fb->fd); 297 fb->fd = -1; 298 } 299 #endif 299 300 300 301 if(fb != NULL) … … 337 338 { 338 339 debug(100, "fb->colbytes: %d", fb->colbytes); 339 if(checkbox("ATEMIO5000") == 1) return; 340 #ifdef EPLAYER4 341 return; 342 #endif 340 343 341 344 if(ostrcmp("pal", value) == 0)
Note: See TracChangeset
for help on using the changeset viewer.