Ticket #6545: videoout_d3d.patch
File videoout_d3d.patch, 1.6 KB (added by , 15 years ago) |
---|
-
libs/libmythtv/videoout_d3d.h
31 31 FrameScanType scan); 32 32 void Show(FrameScanType ); 33 33 34 void WindowResized(const QSize &new_size); 35 34 36 bool InputChanged(const QSize &input_size, 35 37 float aspect, 36 38 MythCodecID av_codec_id, -
libs/libmythtv/videoout_d3d.cpp
112 112 } 113 113 } 114 114 115 void VideoOutputD3D::WindowResized(const QSize &new_size) 116 { 117 QMutexLocker locker(&m_lock); 118 119 windows[0].SetDisplayVisibleRect(QRect(QPoint(0, 0), new_size)); 120 121 windows[0].SetDisplayAspect( 122 ((float)new_size.width()) / new_size.height()); 123 124 MoveResize(); 125 } 126 115 127 bool VideoOutputD3D::InputChanged(const QSize &input_size, 116 128 float aspect, 117 129 MythCodecID av_codec_id, … … 489 501 m_pauseFrame.buf = new unsigned char[m_pauseFrame.size + 128]; 490 502 m_pauseFrame.frameNumber = vbuffers.GetScratchFrame()->frameNumber; 491 503 504 windows[0].SetDisplayAspect((float)winw/winh); 505 492 506 MoveResize(); 493 507 494 508 return true; … … 822 836 list += "direct3d"; 823 837 return list; 824 838 } 839 /* vim: set expandtab tabstop=4 shiftwidth=4: */