Ticket #2648: xrandr2.diff
File xrandr2.diff, 3.0 KB (added by , 16 years ago) |
---|
-
libs/libmythtv/tv_play.cpp
5788 5788 return; 5789 5789 5790 5790 // Resize window to the MythTV GUI size 5791 if (nvp && nvp->getVideoOutput()) 5792 nvp->getVideoOutput()->ResizeForGui(); 5791 5793 MythMainWindow *mwnd = gContext->GetMainWindow(); 5792 5794 bool using_gui_size_for_tv = gContext->GetNumSetting("GuiSizeForTV", 0); 5793 5795 if (!using_gui_size_for_tv) … … 5874 5876 player_bounds.width(), player_bounds.height()); 5875 5877 mwnd->setFixedSize(player_bounds.size()); 5876 5878 } 5879 if (nvp && nvp->getVideoOutput()) 5880 nvp->getVideoOutput()->ResizeForVideo(); 5877 5881 5878 5882 // If user selected a new channel in the EPG, change to that channel 5879 5883 if (changeChannel.size()) -
libs/libmythtv/videoout_xv.h
84 84 void VideoAspectRatioChanged(float aspect); 85 85 void EmbedInWidget(WId wid, int x, int y, int w, int h); 86 86 void StopEmbedding(void); 87 void ResizeForGui(void); 88 void ResizeForVideo(void); 87 89 void DrawUnusedRects(bool sync = true); 88 90 void UpdatePauseFrame(void); 89 91 int SetPictureAttribute(PictureAttribute attribute, int newValue); -
libs/libmythtv/videoout_xv.cpp
377 377 return (int)rate; 378 378 } 379 379 380 void VideoOutputXv::ResizeForVideo(void) 381 { 382 ResizeForVideo(video_dim.width(), video_dim.height()); 383 } 384 385 void VideoOutputXv::ResizeForGui(void) 386 { 387 if (display_res) 388 display_res->SwitchToGUI(); 389 } 390 380 391 /** 381 392 * \fn VideoOutputXv::ResizeForVideo(uint width, uint height) 382 393 * Sets display parameters based on video resolution. … … 2376 2387 XJ_curwin = wid; 2377 2388 2378 2389 VideoOutput::EmbedInWidget(wid, x, y, w, h); 2379 2380 // Switch to GUI size2381 if (display_res)2382 display_res->SwitchToGUI();2383 2390 } 2384 2391 2385 2392 void VideoOutputXv::StopEmbedding(void) … … 2391 2398 2392 2399 XJ_curwin = XJ_win; 2393 2400 VideoOutput::StopEmbedding(); 2394 2395 // Switch back to resolution for full screen video2396 if (display_res)2397 display_res->SwitchToVideo(video_dim.width(), video_dim.height());2398 2401 } 2399 2402 2400 2403 VideoFrame *VideoOutputXv::GetNextFreeFrame(bool /*allow_unsafe*/) -
libs/libmythtv/videooutbase.h
66 66 67 67 virtual void EmbedInWidget(WId wid, int x, int y, int w, int h); 68 68 virtual void StopEmbedding(void); 69 virtual void ResizeForGui(void) { }; 70 virtual void ResizeForVideo(void) { }; 69 71 70 72 virtual void MoveResize(void); 71 73 virtual void Zoom(ZoomDirection direction);