VirtualBox

Changeset 28677 in vbox for trunk


Ignore:
Timestamp:
Apr 23, 2010 6:19:57 PM (15 years ago)
Author:
vboxsync
Message:

VBoxShell: WS-compatible screenshotting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/Frontends/VBoxShell/vboxshell.py

    r28674 r28677  
    370370    else:
    371371        screen = 0
    372     (fb,xorig,yorig) = display.getFramebuffer(screen)
     372    (fbw, fbh, fbbpp) = display.getScreenResolution(screen)
    373373    if len(args) > 1:
    374374        w = int(args[1])
    375375    else:
    376         w = fb.width
     376        w = fbw
    377377    if len(args) > 2:
    378378        h = int(args[2])
    379379    else:
    380         h = fb.height
     380        h = fbh
    381381
    382382    print "Saving screenshot (%d x %d) screen %d in %s..." %(w,h,screen,f)
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