VirtualBox

Ignore:
Timestamp:
Oct 1, 2013 10:03:54 AM (11 years ago)
Author:
vboxsync
Message:

crOpenGL: fix window geometry setting

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_config.c

    r44766 r48791  
    1616static void set_window_geometry( RenderSPU *render_spu, const char *response )
    1717{
    18     float x, y, w, h;
     18    int x, y, w, h;
    1919    CRASSERT(response[0] == '[');
    20     sscanf( response, "[ %f, %f, %f, %f ]", &x, &y, &w, &h );
     20    sscanf( response, "[ %d, %d, %d, %d ]", &x, &y, &w, &h );
    2121    render_spu->defaultX = (int) x;
    2222    render_spu->defaultY = (int) y;
    23     render_spu->defaultWidth = (int) w;
    24     render_spu->defaultHeight = (int) h;
     23    render_spu->defaultWidth = (unsigned int) w;
     24    render_spu->defaultHeight = (unsigned int) h;
    2525}
    2626
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