Changeset 41404 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp
- Timestamp:
- May 22, 2012 4:41:38 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp
r41128 r41404 1133 1133 rc = VINF_SUCCESS; 1134 1134 } 1135 break; 1136 } 1137 case SHCRGL_HOST_FN_VIEWPORT_CHANGED: 1138 { 1139 Log(("svcCall: SHCRGL_HOST_FN_VIEWPORT_CHANGED\n")); 1140 1141 /* Verify parameter count and types. */ 1142 if (cParms != SHCRGL_CPARMS_VIEWPORT_CHANGED) 1143 { 1144 LogRel(("SHCRGL_HOST_FN_VIEWPORT_CHANGED: cParms invalid - %d", cParms)); 1145 rc = VERR_INVALID_PARAMETER; 1146 break; 1147 } 1148 1149 for (int i = 0; i < SHCRGL_CPARMS_VIEWPORT_CHANGED; ++i) 1150 { 1151 if (paParms[i].type != VBOX_HGCM_SVC_PARM_32BIT) 1152 { 1153 LogRel(("SHCRGL_HOST_FN_VIEWPORT_CHANGED: param[%d] type invalid - %d", i, paParms[i].type)); 1154 rc = VERR_INVALID_PARAMETER; 1155 break; 1156 } 1157 } 1158 1159 if (!RT_SUCCESS(rc)) 1160 { 1161 LogRel(("SHCRGL_HOST_FN_VIEWPORT_CHANGED: param validation failed, returning..")); 1162 break; 1163 } 1164 1165 rc = crVBoxServerSetScreenViewport((int)paParms[0].u.uint32, 1166 paParms[1].u.uint32, /* x */ 1167 paParms[2].u.uint32, /* y */ 1168 paParms[3].u.uint32, /* w */ 1169 paParms[4].u.uint32 /* h */); 1170 if (!RT_SUCCESS(rc)) 1171 { 1172 LogRel(("SHCRGL_HOST_FN_VIEWPORT_CHANGED: crVBoxServerSetScreenViewport failed, rc %d", rc)); 1173 break; 1174 } 1175 1135 1176 break; 1136 1177 }
Note:
See TracChangeset
for help on using the changeset viewer.