Changeset 48791 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/render
- Timestamp:
- Oct 1, 2013 10:03:54 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/render/renderspu_config.c
r44766 r48791 16 16 static void set_window_geometry( RenderSPU *render_spu, const char *response ) 17 17 { 18 float x, y, w, h;18 int x, y, w, h; 19 19 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 ); 21 21 render_spu->defaultX = (int) x; 22 22 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; 25 25 } 26 26
Note:
See TracChangeset
for help on using the changeset viewer.