Changeset 55808 in vbox for trunk/src/VBox/Additions/linux
- Timestamp:
- May 11, 2015 6:31:56 PM (10 years ago)
- Location:
- trunk/src/VBox/Additions/linux/drm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/linux/drm/vbox_fb.c
r53793 r55808 99 99 struct drm_device *dev = afbdev->helper.dev; 100 100 struct vbox_private *vbox = dev->dev_private; 101 struct drm_crtc *crtc;102 101 int i; 103 102 … … 174 173 /* assume equal stride for now */ 175 174 src_offset = dst_offset = i * afbdev->afb.base.pitches[0] + (x * bpp); 176 memcpy_toio(bo->kmap.virtual + src_offset, afbdev->sysram + src_offset, (x2 - x + 1) * bpp);175 memcpy_toio(bo->kmap.virtual + src_offset, (char *)afbdev->sysram + src_offset, (x2 - x + 1) * bpp); 177 176 } 178 177 /* Not sure why the original code subtracted 1 here, but I will keep it that -
trunk/src/VBox/Additions/linux/drm/vbox_main.c
r53793 r55808 363 363 { 364 364 struct vbox_private *vbox = dev->dev_private; 365 int i;366 365 367 366 LogFunc(("vboxvideo: %d\n", __LINE__)); -
trunk/src/VBox/Additions/linux/drm/vbox_mode.c
r53793 r55808 485 485 pDrmDev = pVBoxConnector->base.dev; 486 486 pVBox = pDrmDev->dev_private; 487 if (sscanf(psz, "% dx%d\n%c", &cX, &cY, &ch) != 2)487 if (sscanf(psz, "%5dx%5d\n%c", &cX, &cY, &ch) != 2) 488 488 return -EINVAL; 489 489 if ( cX < 64 || cX > VBE_DISPI_MAX_XRES
Note:
See TracChangeset
for help on using the changeset viewer.