VirtualBox

Ignore:
Timestamp:
Aug 15, 2013 3:13:01 PM (11 years ago)
Author:
vboxsync
Message:

Main,Frontends: IDisplay::GetScreenResolution returns the screen origin.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Main/webservice/samples/python/clienttest.py

    r44588 r47774  
    9999                display = console.display
    100100
    101                 # Get the VM's current display resolution + bit depth
     101                # Get the VM's current display resolution + bit depth + position
    102102                screenNum = 0 # From first screen
    103                 (screenX, screenY, screenBPP) = display.getScreenResolution(screenNum)
    104                 print "    Display (%d):     %dx%d, %d BPP"  %(screenNum, screenX, screenY, screenBPP)
     103                (screenW, screenH, screenBPP, screenX, screenY) = display.getScreenResolution(screenNum)
     104                print "    Display (%d):     %dx%d, %d BPP at %d,%d"  %(screenNum, screenW, screenH, screenBPP, screenX, screenY)
    105105
    106106                # We're done -- don't forget to unlock the machine!
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