Subversion Repositories Kolibri OS

Rev

Rev 4280 | Rev 4371 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 4280 Rev 4293
Line 195... Line 195...
195
    if ( !ret )
195
    if ( !ret )
196
    {
196
    {
197
        os_display->width    = fb->width;
197
        os_display->width    = fb->width;
198
        os_display->height   = fb->height;
198
        os_display->height   = fb->height;
199
        os_display->pitch    = fb->pitches[0];
-
 
200
        os_display->vrefresh = drm_mode_vrefresh(mode);
199
        os_display->vrefresh = drm_mode_vrefresh(mode);
Line 201... Line 200...
201
 
200
 
Line 202... Line 201...
202
        sysSetScreen(fb->width, fb->height, fb->pitches[0]);
201
        sysSetScreen(fb->width, fb->height, fb->pitches[0]);
Line 207... Line 206...
207
    else
206
    else
208
        DRM_ERROR("failed to set mode %d_%d on crtc %p\n",
207
        DRM_ERROR("failed to set mode %d_%d on crtc %p\n",
209
                   fb->width, fb->height, crtc);
208
                   fb->width, fb->height, crtc);
210
 
209
 
Line 211... Line -...
211
 
-
 
212
    return ret;
210
    return ret;
213
}
211
}
Line 214... Line 212...
214
 
212
 
215
static int count_connector_modes(struct drm_connector* connector)
213
static int count_connector_modes(struct drm_connector* connector)
Line 379... Line 377...
379
        (usermode->height == 0))
377
        (usermode->height == 0))
380
    {
378
    {
381
        struct drm_display_mode *mode;
379
        struct drm_display_mode *mode;
382
 
380
 
Line 383... Line -...
383
//        connector->funcs->fill_modes(connector, dev->mode_config.max_width,
-
 
384
//                                     dev->mode_config.max_height);
-
 
385
 
-
 
386
        list_for_each_entry(mode, &connector->modes, head)
381
        list_for_each_entry(mode, &connector->modes, head)
387
        {
382
        {
388
            printf("check mode w:%d h:%d %dHz\n",
383
            dbgprintf("check mode w:%d h:%d %dHz\n",
389
                    drm_mode_width(mode), drm_mode_height(mode),
384
                    drm_mode_width(mode), drm_mode_height(mode),
390
                    drm_mode_vrefresh(mode));
385
                    drm_mode_vrefresh(mode));
Line 391... Line 386...
391
 
386
 
392
            if( os_display->width  == drm_mode_width(mode)  &&
387
            if( os_display->width  == drm_mode_width(mode)  &&