Advertisement
expired6978

Test View

Jun 7th, 2013
91
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.67 KB | None | 0 0
  1. class GViewport
  2. {
  3. public:
  4. SInt32 bufferWidth;
  5. SInt32 bufferHeight;
  6. SInt32 left;
  7. SInt32 top;
  8. SInt32 width;
  9. SInt32 height;
  10. SInt32 scissorLeft;
  11. SInt32 scissorTop;
  12. SInt32 scissorWidth;
  13. SInt32 scissorHeight;
  14. float scale;
  15. float aspectRatio;
  16. UInt32 flags;
  17. };
  18.  
  19. MenuManager * mm = MenuManager::GetSingleton();
  20. if(mm) {
  21. BSFixedString t("RaceSex Menu");
  22. RaceSexMenu * raceMenu = (RaceSexMenu *)mm->GetMenu(&t);
  23. if(raceMenu) {
  24. GFxMovieView * movieView = raceMenu->view;
  25. if(movieView)
  26. {
  27. GViewport viewPort;
  28. movieView->GetViewport(&viewPort);
  29. viewPort.bufferWidth /= 2;
  30. viewPort.width /= 2;
  31. movieView->SetViewport(viewPort);
  32. }
  33. }
  34. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement