Changeset 26495


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

titan add vusolo2

Location:
titan/titan
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • titan/titan/avsettings.h

    r26467 r26495  
    242242                                {
    243243                                        setvideomode(resolution->ret, 0);
    244 //                                      if(checkbox("ATEMIO5000") != 1)
    245                                                 changefbresolution(resolution->ret, 0);
     244                                        changefbresolution(resolution->ret, 0);
    246245                                        if(flag == 0)
    247246                                        {
     
    250249                                                {
    251250                                                        setvideomode(ret, 0);
    252 //                                                      if(checkbox("ATEMIO5000") != 1)
    253                                                                 changefbresolution(ret, 0);
     251                                                        changefbresolution(ret, 0);
    254252                                                }
    255253                                                else
  • 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)
  • titan/titan/infobar.h

    r26410 r26495  
    6666                        {
    6767                                if(playpic == 1) {
    68                                         if (checkbox("ATEMIO5000") != 1)
     68//it anymore needed
     69//                                      if (checkbox("ATEMIO5000") != 1)
    6970                                                clearscreen(playinfobarpic);
    7071                                        drawscreen(playinfobarpic, 0, 0);
  • titan/titan/titan.c

    r26480 r26495  
    714714        initlocale(getconfig("localepath", NULL));
    715715
    716         if(checkbox("ATEMIO5000") == 1)
    717                 bcm_accel_init();
     716#ifdef EPLAYER4
     717        bcm_accel_init();
     718#endif
    718719
    719720        fb = openfb(getconfig("fbdev", NULL), 0);
     
    722723        clearfball();
    723724        enablemanualblit();
    724         if(checkbox("ATEMIO5000") == 1)
    725                 waitvsync();
     725       
     726#ifdef EPLAYER4
     727        waitvsync();
     728#endif
    726729
    727730        tmpstr = getconfig("fb1dev", NULL);
Note: See TracChangeset for help on using the changeset viewer.