VirtualBox

Changeset 55236 in vbox for trunk/src/VBox


Ignore:
Timestamp:
Apr 14, 2015 10:02:04 AM (10 years ago)
Author:
vboxsync
Message:

Additions/x11/vboxvideo: use constants for the maximum and minimum screen and frame-buffer sizes.

Location:
trunk/src/VBox/Additions/x11/vboxvideo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.c

    r55226 r55236  
    863863     * took the first valid values set to these two as maxima over the
    864864     * server lifetime. */
    865     pScrn->virtualX = 32000;
    866     pScrn->virtualY = 32000;
     865    pScrn->virtualX = VBOX_VIDEO_MAX_VIRTUAL;
     866    pScrn->virtualY = VBOX_VIDEO_MAX_VIRTUAL;
    867867#else
    868868    /* We don't validate with xf86ValidateModes and xf86PruneModes as we
     
    10891089    /* Set a sane minimum and maximum mode size to match what the hardware
    10901090     * supports. */
    1091     xf86CrtcSetSizeRange(pScrn, 64, 64, 16384, 16384);
     1091    xf86CrtcSetSizeRange(pScrn, VBOX_VIDEO_MIN_SIZE, VBOX_VIDEO_MIN_SIZE, VBOX_VIDEO_MAX_VIRTUAL, VBOX_VIDEO_MAX_VIRTUAL);
    10921092
    10931093    /* Now create our initial CRTC/output configuration. */
  • trunk/src/VBox/Additions/x11/vboxvideo/vboxvideo.h

    r55225 r55236  
    129129#define VBOX_DRI_DRIVER_NAME  "vboxvideo"  /* For starters. */
    130130#define VBOX_MAX_DRAWABLES    256          /* At random. */
     131
     132#define VBOX_VIDEO_MIN_SIZE    64
     133#define VBOX_VIDEO_MAX_VIRTUAL (INT16_MAX - 1)
    131134
    132135#define VBOXPTR(p) ((VBOXPtr)((p)->driverPrivate))
Note: See TracChangeset for help on using the changeset viewer.

© 2024 Oracle Support Privacy / Do Not Sell My Info Terms of Use Trademark Policy Automated Access Etiquette