View | Details | Raw Unified | Return to bug 779048
Collapse All | Expand All

(-)splashy-0.3.13/src/splashy_video.c (-19 / +9 lines)
Lines 688-699 video_set_mode () Link Here
688
         * used to disable inputs from mouse and reduce overhead (about 15%
688
         * used to disable inputs from mouse and reduce overhead (about 15%
689
         * of CPU usage)
689
         * of CPU usage)
690
         */
690
         */
691
        /*
692
         * FIXME video.dfb->SetCooperativeLevel (video.dfb,
693
         * DFSCL_FULLSCREEN); 
694
         */
695
        video.primary_layer->SetCooperativeLevel (video.primary_layer,
691
        video.primary_layer->SetCooperativeLevel (video.primary_layer,
696
                                                  DLSCL_EXCLUSIVE);
692
                                                  DLSCL_ADMINISTRATIVE);
697
        video.primary_layer->GetConfiguration (video.primary_layer,
693
        video.primary_layer->GetConfiguration (video.primary_layer,
698
                                               &video.primary_layer_config);
694
                                               &video.primary_layer_config);
699
695
Lines 1158-1163 splashy_start_splash () Link Here
1158
                return -2;
1154
                return -2;
1159
        }
1155
        }
1160
1156
1157
        video.dfb->SetCooperativeLevel (video.dfb, DFSCL_FULLSCREEN);
1158
1161
        video.mode = g_new0 (splashy_videomode_t, 1);
1159
        video.mode = g_new0 (splashy_videomode_t, 1);
1162
        /*
1160
        /*
1163
         * set our expectation to a very big number 
1161
         * set our expectation to a very big number 
Lines 1197-1213 splashy_start_splash () Link Here
1197
                video.dfb->Release (video.dfb);
1195
                video.dfb->Release (video.dfb);
1198
                return -3;
1196
                return -3;
1199
        }
1197
        }
1200
        if (video.provider->GetSurfaceDescription (video.provider,
1201
                                                   &desc) != DFB_OK)
1202
        {
1203
                video.dfb->Release (video.dfb);
1204
                return -4;
1205
        }
1206
        /*
1207
         * flags to set the default surface as main surface
1208
         */
1209
        desc.flags = DSDESC_CAPS;
1210
        desc.caps = DSCAPS_PRIMARY;
1211
1198
1212
        /*
1199
        /*
1213
         * store our primary layer as this will be use for setting the opacity
1200
         * store our primary layer as this will be use for setting the opacity
Lines 1231-1239 splashy_start_splash () Link Here
1231
         * get our primary_surface, this will hold the progressbar, textbox
1218
         * get our primary_surface, this will hold the progressbar, textbox
1232
         * and others
1219
         * and others
1233
         */
1220
         */
1234
        if (video.primary_layer->GetSurface (video.primary_layer,
1221
        desc.flags = DSDESC_CAPS;
1235
                                             &video.primary_surface)
1222
        desc.caps = DSCAPS_PRIMARY;
1236
            != DFB_OK)
1223
1224
        if (video.dfb->CreateSurface (video.dfb,
1225
                                      &desc,
1226
                                      &video.primary_surface) != DFB_OK)
1237
        {
1227
        {
1238
                video.dfb->Release (video.dfb);
1228
                video.dfb->Release (video.dfb);
1239
                return -6;
1229
                return -6;

Return to bug 779048