Changeset 26495 for titan/titan/fb.h


Ignore:
Timestamp:
02/26/14 21:18:25 (9 years ago)
Author:
obi
Message:

titan add vusolo2

File:
1 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/fb.h

    r26471 r26495  
    193193        fd = open(fbdev, O_RDWR);
    194194
    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        {
    200199                        perror(fbdev);
    201200                        goto nolfb;
    202201                }
    203         }
    204         // blinking work end
     202#endif
     203// blinking work end
    205204               
    206205        if(fd == -1)
     
    241240        }
    242241
    243         if (checkbox("ATEMIO5000") == 1 && var_screeninfo.bits_per_pixel != 32)
     242#ifdef EPLAYER4
     243        if (var_screeninfo.bits_per_pixel != 32)
    244244        {
    245245                debug(100, "Only 32 bit per pixel supported. Framebuffer currently use %d", var_screeninfo.bits_per_pixel);
     
    247247                return 0;
    248248        }
     249#endif
    249250
    250251
     
    281282void closefb()
    282283{
    283         if(checkbox("ATEMIO5000") == 1)
    284         {
    285                 if(lfb)
    286                 {
    287                         debug(100, "ms_sync");
    288                         msync(lfb, fix_screeninfo.smem_len, MS_SYNC);
    289                         munmap(lfb, fix_screeninfo.smem_len);
    290                 }
    291                 if(fb->fd >= 0)
    292                 {
    293                         debug(100, "close");
    294                         disablemanualblit();
    295                         close(fb->fd);
    296                         fb->fd = -1;
    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
    299300
    300301        if(fb != NULL)
     
    337338{
    338339        debug(100, "fb->colbytes: %d", fb->colbytes);
    339         if(checkbox("ATEMIO5000") == 1) return;
     340#ifdef EPLAYER4
     341        return;
     342#endif
    340343
    341344        if(ostrcmp("pal", value) == 0)
Note: See TracChangeset for help on using the changeset viewer.