void MplayerWindow::setAspect( double asp) { aspect = asp; if (monitoraspect!=0) { aspect = aspect / monitoraspect * DesktopInfo::desktop_aspectRatio(this); } updateVideoWindow(); }
void MplayerWindow::setResolution( int w, int h) { video_width = w; video_height = h; updateVideoWindow(); }
void MplayerWindow::resizeLater() { offset_x = 0; offset_y = 0; updateVideoWindow(); setZoom(zoom_factor); }
void MplayerWindow::setResolution( int w, int h) { video_width = w; video_height = h; //mplayerlayer->move(1,1); updateVideoWindow(); }
void MplayerWindow::setLogoVisible( bool b) { const QPixmap* pm; logo->setVisible(b); if (b && (pm = logo->pixmap())) { aspect = double(pm->width()) / double(pm->height()); updateVideoWindow(); } }
void MplayerWindow::resizeEvent( QResizeEvent * /* e */) { /*qDebug("MplayerWindow::resizeEvent: %d, %d", e->size().width(), e->size().height() );*/ offset_x = 0; offset_y = 0; updateVideoWindow(); setZoom(zoom_factor); }
void MplayerWindow::retranslateStrings() { //qDebug("MplayerWindow::retranslateStrings"); #ifndef MINILIB QPixmap pm = Images::icon("background"); logo->setPixmap( pm ); if (logo->isVisible()) { aspect = double(pm.width()) / double(pm.height()); updateVideoWindow(); } #endif }
void MplayerWindow::resizeEvent( QResizeEvent * ) { #if !DELAYED_RESIZE offset_x = 0; offset_y = 0; updateVideoWindow(); setZoom(zoom_factor); #else resize_timer->start(); #endif }