VirtualBox

Ignore:
Timestamp:
Mar 2, 2015 3:42:16 PM (10 years ago)
Author:
vboxsync
Message:

Host 3D unscaled HiDPI output: privide notifyHiDPIOutputPolicyChange() IDisplay interface to GUI in ouder to notify 3D about corresponding user option value change.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp

    r53894 r54582  
    13951395            break;
    13961396        }
     1397
     1398        case SHCRGL_HOST_FN_SET_UNSCALED_HIDPI:
     1399        {
     1400            /* Verify parameter count and types. */
     1401            if (cParms != 1
     1402             || paParms[0].type != VBOX_HGCM_SVC_PARM_PTR
     1403             || paParms[0].u.pointer.size != sizeof(CRVBOXHGCMSETUNSCALEDHIDPIOUTPUT)
     1404             || !paParms[0].u.pointer.addr)
     1405            {
     1406                WARN(("invalid parameter"));
     1407                rc = VERR_INVALID_PARAMETER;
     1408                break;
     1409            }
     1410
     1411            CRVBOXHGCMSETUNSCALEDHIDPIOUTPUT *pData = (CRVBOXHGCMSETUNSCALEDHIDPIOUTPUT *)paParms[0].u.pointer.addr;
     1412            crServerSetUnscaledHiDPI(pData->fUnscaledHiDPI);
     1413            LogRel(("OpenGL: Set OpenGL scale policy on HiDPI displays (fUnscaledHiDPI=%d).\n", pData->fUnscaledHiDPI));
     1414            break;
     1415        }
     1416
    13971417        default:
    13981418            WARN(("svcHostCallPerform: unexpected u32Function %d", u32Function));
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