Changeset 53854 in vbox
- Timestamp:
- Jan 16, 2015 12:28:22 PM (10 years ago)
- Location:
- trunk
- Files:
-
- 2 edited
-
include/VBox/VBoxOGL.h (modified) (1 diff)
-
src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/window.cpp (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/VBox/VBoxOGL.h
r53847 r53854 43 43 #define VBOX_OGL_SCALE_FACTOR_MULTIPLIER 100.0 44 44 45 /* 3D content scale factor range bounds. */ 46 #define VBOX_OGL_SCALE_FACTOR_MIN 0.5 47 #define VBOX_OGL_SCALE_FACTOR_MAX 2.0 48 45 49 bool RTCALL VBoxOglIsOfflineRenderingAppropriate(void); 46 50 bool RTCALL VBoxOglIs3DAccelerationSupported(void); -
trunk/src/VBox/HostServices/SharedOpenGL/crserverlib/presenter/window.cpp
r53817 r53854 18 18 19 19 #include "server_presenter.h" 20 20 #include <VBox/VBoxOGL.h> 21 21 22 22 CrFbWindow::CrFbWindow(uint64_t parentId) : … … 213 213 214 214 /* Simple check for input values. */ 215 if ( !(scaleFactorW > 0 && scaleFactorW > 0) ) 215 if ( !( (scaleFactorW >= VBOX_OGL_SCALE_FACTOR_MIN && scaleFactorW <= VBOX_OGL_SCALE_FACTOR_MAX) 216 && (scaleFactorH >= VBOX_OGL_SCALE_FACTOR_MIN && scaleFactorH <= VBOX_OGL_SCALE_FACTOR_MAX))) 216 217 return false; 217 218
Note:
See TracChangeset
for help on using the changeset viewer.

