Changeset 50251 in vbox for trunk/src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp
- Timestamp:
- Jan 28, 2014 10:19:33 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/HostServices/SharedOpenGL/crserver/crservice.cpp
r50250 r50251 1149 1149 else 1150 1150 { 1151 #if 0 1151 1152 CHECK_ERROR_RET(pFramebuffer, Lock(), rc); 1153 #endif 1152 1154 1153 1155 do { … … 1173 1175 } 1174 1176 } while (0); 1175 1177 #if 0 1176 1178 CHECK_ERROR_RET(pFramebuffer, Unlock(), rc); 1179 #endif 1177 1180 } 1178 1181 … … 1219 1222 } 1220 1223 case SHCRGL_HOST_FN_VIEWPORT_CHANGED: 1224 { 1225 Log(("svcCall: SHCRGL_HOST_FN_VIEWPORT_CHANGED\n")); 1226 1227 /* Verify parameter count and types. */ 1228 if (cParms != SHCRGL_CPARMS_VIEWPORT_CHANGED) 1229 { 1230 LogRel(("SHCRGL_HOST_FN_VIEWPORT_CHANGED: cParms invalid - %d", cParms)); 1231 rc = VERR_INVALID_PARAMETER; 1232 break; 1233 } 1234 1235 for (int i = 0; i < SHCRGL_CPARMS_VIEWPORT_CHANGED; ++i) 1236 { 1237 if (paParms[i].type != VBOX_HGCM_SVC_PARM_32BIT) 1238 { 1239 LogRel(("SHCRGL_HOST_FN_VIEWPORT_CHANGED: param[%d] type invalid - %d", i, paParms[i].type)); 1240 rc = VERR_INVALID_PARAMETER; 1241 break; 1242 } 1243 } 1244 1245 if (!RT_SUCCESS(rc)) 1246 { 1247 LogRel(("SHCRGL_HOST_FN_VIEWPORT_CHANGED: param validation failed, returning..")); 1248 break; 1249 } 1250 1251 crServerVBoxCompositionSetEnableStateGlobal(GL_FALSE); 1252 1253 rc = crVBoxServerSetScreenViewport((int)paParms[0].u.uint32, 1254 paParms[1].u.uint32, /* x */ 1255 paParms[2].u.uint32, /* y */ 1256 paParms[3].u.uint32, /* w */ 1257 paParms[4].u.uint32 /* h */); 1258 if (!RT_SUCCESS(rc)) 1259 { 1260 LogRel(("SHCRGL_HOST_FN_VIEWPORT_CHANGED: crVBoxServerSetScreenViewport failed, rc %d", rc)); 1261 } 1262 1263 crServerVBoxCompositionSetEnableStateGlobal(GL_TRUE); 1264 1265 break; 1266 } 1267 case SHCRGL_HOST_FN_VIEWPORT_CHANGED2: 1221 1268 { 1222 1269 Log(("svcCall: SHCRGL_HOST_FN_VIEWPORT_CHANGED\n"));
Note:
See TracChangeset
for help on using the changeset viewer.