Changeset 22834 in vbox for trunk/src/VBox/Frontends/VirtualBox/include
- Timestamp:
- Sep 8, 2009 12:03:54 PM (15 years ago)
- svn:sync-xref-src-repo-rev:
- 52065
- Location:
- trunk/src/VBox/Frontends/VirtualBox/include
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Frontends/VirtualBox/include/VBoxConsoleView.h
r22816 r22834 138 138 void requestToResize (const QSize &aSize); 139 139 140 #ifdef VBOX_WITH_VIDEOHWACCEL 141 void scrollContentsBy (int dx, int dy); 142 #endif 143 140 144 #if defined(Q_WS_MAC) 141 145 void updateDockIcon(); -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxFBOverlay.h
r22826 r22834 572 572 void setHandle(uint32_t h) {mHGHandle = h;} 573 573 574 const VBoxVHWADirtyRect & getDirtyRect() { return mUpdateMem2TexRect; } 575 574 576 private: 575 577 void doSetRectValuesInternal(const QRect & aTargRect, const QRect & aSrcRect, const QRect & aVisTargRect); … … 1187 1189 void onResizeEventPostprocess (const class VBoxResizeEvent *re); 1188 1190 1191 void viewportResized(QResizeEvent * re) 1192 { 1193 vboxDoCheckUpdateViewport(); 1194 mGlCurrent = false; 1195 } 1196 1197 void viewportScrolled(int dx, int dy) 1198 { 1199 vboxDoCheckUpdateViewport(); 1200 mGlCurrent = false; 1201 } 1202 1189 1203 static bool isAcceleration2DVideoAvailable(); 1190 1204 … … 1193 1207 void vhwaSaveExec(struct SSMHANDLE * pSSM); 1194 1208 private: 1209 int vhwaSurfaceUnlock(struct _VBOXVHWACMD_SURF_UNLOCK *pCmd); 1210 1211 void repaintMain(); 1212 void repaintOverlay() 1213 { 1214 if(mNeedOverlayRepaint) 1215 { 1216 mNeedOverlayRepaint = false; 1217 performDisplayOverlay(); 1218 } 1219 } 1220 void repaint() 1221 { 1222 repaintOverlay(); 1223 repaintMain(); 1224 } 1195 1225 1196 1226 void makeCurrent() … … 1217 1247 } 1218 1248 1219 void vboxOpExit()1220 {1221 performDisplayOverlay();1222 mGlCurrent = false;1223 }1249 // void vboxOpExit() 1250 // { 1251 // performDisplayOverlay(); 1252 // mGlCurrent = false; 1253 // } 1224 1254 1225 1255 1226 1256 void vboxSetGlOn(bool on); 1227 1257 bool vboxGetGlOn() { return mGlOn; } 1228 voidvboxSynchGl();1258 bool vboxSynchGl(); 1229 1259 void vboxDoVHWACmdExec(void *cmd); 1230 1260 void vboxShowOverlay(bool show); 1231 1261 void vboxDoCheckUpdateViewport(); 1232 1262 void vboxDoVHWACmd(void *cmd); 1233 void vboxDoUpdateRect(const QRect * pRect);1263 void addMainDirtyRect(const QRect & aRect); 1234 1264 // void vboxUpdateOverlayPosition(const QPoint & pos); 1235 1265 void vboxCheckUpdateOverlay(const QRect & rect); … … 1246 1276 bool mGlCurrent; 1247 1277 bool mProcessingCommands; 1278 bool mNeedOverlayRepaint; 1248 1279 QRect mOverlayViewport; 1249 1280 VBoxVHWADirtyRect mMainDirtyRect; … … 1310 1341 mOverlay.onResizeEventPostprocess(re); 1311 1342 } 1343 1344 void viewportResized(QResizeEvent * re) 1345 { 1346 mOverlay.viewportResized(re); 1347 T::viewportResized(re); 1348 } 1349 1350 void viewportScrolled(int dx, int dy) 1351 { 1352 mOverlay.viewportScrolled(dx, dy); 1353 T::viewportScrolled(dx, dy); 1354 } 1312 1355 private: 1313 1356 VBoxQGLOverlay mOverlay; -
trunk/src/VBox/Frontends/VirtualBox/include/VBoxFrameBuffer.h
r22822 r22834 243 243 * the event is framebuffer implementation specific */ 244 244 virtual void doProcessVHWACommand(QEvent * pEvent); 245 246 virtual void viewportResized(QResizeEvent * re){} 247 248 virtual void viewportScrolled(int dx, int dy){} 245 249 #endif 246 250
Note:
See TracChangeset
for help on using the changeset viewer.