Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class GViewport
- {
- public:
- SInt32 bufferWidth;
- SInt32 bufferHeight;
- SInt32 left;
- SInt32 top;
- SInt32 width;
- SInt32 height;
- SInt32 scissorLeft;
- SInt32 scissorTop;
- SInt32 scissorWidth;
- SInt32 scissorHeight;
- float scale;
- float aspectRatio;
- UInt32 flags;
- };
- MenuManager * mm = MenuManager::GetSingleton();
- if(mm) {
- BSFixedString t("RaceSex Menu");
- RaceSexMenu * raceMenu = (RaceSexMenu *)mm->GetMenu(&t);
- if(raceMenu) {
- GFxMovieView * movieView = raceMenu->view;
- if(movieView)
- {
- GViewport viewPort;
- movieView->GetViewport(&viewPort);
- viewPort.bufferWidth /= 2;
- viewPort.width /= 2;
- movieView->SetViewport(viewPort);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement