Changeset 69083 in vbox for trunk/src/VBox/Additions/linux/drm
- Timestamp:
- Oct 13, 2017 4:03:36 PM (7 years ago)
- Location:
- trunk/src/VBox/Additions/linux/drm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_drv.h
r68848 r69083 179 179 struct vbox_crtc *vbox_crtc; 180 180 struct { 181 u 16width;182 u 16height;181 u32 width; 182 u32 height; 183 183 bool disconnected; 184 184 } mode_hint; … … 192 192 u32 fb_offset; 193 193 bool cursor_enabled; 194 u 16x_hint;195 u 16y_hint;194 u32 x_hint; 195 u32 y_hint; 196 196 }; 197 197 -
trunk/src/VBox/Additions/linux/drm/vbox_irq.c
r68334 r69083 161 161 | (disconnected ? VBVA_SCREEN_F_DISABLED : 162 162 VBVA_SCREEN_F_BLANK); 163 vbox_connector->mode_hint.width = hints->cx & 0x8fff;164 vbox_connector->mode_hint.height = hints->cy & 0x8fff;163 vbox_connector->mode_hint.width = hints->cx; 164 vbox_connector->mode_hint.height = hints->cy; 165 165 vbox_connector->vbox_crtc->x_hint = hints->dx; 166 166 vbox_connector->vbox_crtc->y_hint = hints->dy; -
trunk/src/VBox/Additions/linux/drm/vbox_mode.c
r68848 r69083 593 593 } 594 594 vbox_set_edid(connector, preferred_width, preferred_height); 595 595 596 #if LINUX_VERSION_CODE >= KERNEL_VERSION(3, 19, 0) || defined(RHEL_73) 596 drm_object_property_set_value( 597 &connector->base, vbox->dev->mode_config.suggested_x_property, 598 vbox_connector->vbox_crtc->x_hint); 599 drm_object_property_set_value( 600 &connector->base, vbox->dev->mode_config.suggested_y_property, 601 vbox_connector->vbox_crtc->y_hint); 597 if (vbox_connector->vbox_crtc->x_hint != -1) 598 drm_object_property_set_value(&connector->base, 599 vbox->dev->mode_config.suggested_x_property, 600 vbox_connector->vbox_crtc->x_hint); 601 else 602 drm_object_property_set_value(&connector->base, 603 vbox->dev->mode_config.suggested_x_property, 0); 604 605 if (vbox_connector->vbox_crtc->y_hint != -1) 606 drm_object_property_set_value(&connector->base, 607 vbox->dev->mode_config.suggested_y_property, 608 vbox_connector->vbox_crtc->y_hint); 609 else 610 drm_object_property_set_value(&connector->base, 611 vbox->dev->mode_config.suggested_y_property, 0); 602 612 #endif 603 613 … … 691 701 drm_mode_create_suggested_offset_properties(dev); 692 702 drm_object_attach_property(&connector->base, 693 dev->mode_config.suggested_x_property, -1);703 dev->mode_config.suggested_x_property, 0); 694 704 drm_object_attach_property(&connector->base, 695 dev->mode_config.suggested_y_property, -1);705 dev->mode_config.suggested_y_property, 0); 696 706 #endif 697 707 #if LINUX_VERSION_CODE < KERNEL_VERSION(3, 17, 0) && !defined(RHEL_73)
Note:
See TracChangeset
for help on using the changeset viewer.