Ticket #8950: 8950-v1.patch
File 8950-v1.patch, 3.2 KB (added by , 14 years ago) |
---|
-
libs/libmythtv/tv_play.h
804 804 QRect saved_gui_bounds; 805 805 /// true if this instance disabled MythUI drawing. 806 806 bool weDisabledGUI; 807 /// true if video chromakey and frame should not be drawn 808 bool disableDrawUnusedRects; 807 809 808 810 // embedded status 809 811 bool isEmbedded; ///< are we currently embedded -
libs/libmythtv/tv_play.cpp
919 919 lcdTitle(""), lcdSubtitle(""), lcdCallsign(""), 920 920 // Window info (GUI is optional, transcoding, preview img, etc) 921 921 myWindow(NULL), weDisabledGUI(false), 922 disableDrawUnusedRects(false), 922 923 isEmbedded(false), ignoreKeyPresses(false), 923 924 // Timers 924 925 lcdTimerId(0), keyListTimerId(0), … … 3415 3416 case QEvent::Enter: 3416 3417 { 3417 3418 event(e); 3418 return true;3419 return false; 3419 3420 } 3420 3421 default: 3421 3422 return false; … … 7729 7730 7730 7731 void TV::DrawUnusedRects(void) 7731 7732 { 7732 if ( !weDisabledGUI)7733 if (disableDrawUnusedRects) 7733 7734 return; 7734 7735 7735 7736 VERBOSE(VB_PLAYBACK, LOC + "DrawUnusedRects() -- begin"); … … 7885 7886 } 7886 7887 } 7887 7888 7889 // If the video is paused, don't paint it's unused rects & chromakey 7890 disableDrawUnusedRects = pause_active; 7891 7888 7892 // We are embedding in a mythui window so assuming no one 7889 7893 // else has disabled painting show the MythUI window again. 7890 7894 if (GetMythMainWindow() && weDisabledGUI) … … 8615 8619 } 8616 8620 8617 8621 DoSetPauseState(actx, saved_pause); // Restore pause states 8622 disableDrawUnusedRects = false; 8618 8623 8619 8624 GetMythMainWindow()->GetPaintWindow()->hide(); 8620 8625 GetMythMainWindow()->GetPaintWindow()->clearMask(); -
libs/libmythtv/videoout_xv.cpp
2586 2586 return; 2587 2587 } 2588 2588 2589 // This is used to avoid drawing the colorkey when embedding and 2590 // not using overlay. This is needed because we don't paint this 2591 // in the vertical retrace period when calling this from the EPG. 2592 bool clrdraw = xv_colorkey || !window.IsEmbedding(); 2593 2594 if (xv_draw_colorkey && window.IsRepaintNeeded() && clrdraw) 2589 if (xv_draw_colorkey && window.IsRepaintNeeded()) 2595 2590 { 2596 2591 disp->SetForeground(xv_colorkey); 2597 2592 disp->FillRectangle(XJ_curwin, … … 2600 2595 display_visible_rect.width(), 2601 2596 display_visible_rect.height() - 2 * boboff)); 2602 2597 } 2603 else if (xv_draw_colorkey && xv_need_bobdeint_repaint && clrdraw)2598 else if (xv_draw_colorkey && xv_need_bobdeint_repaint) 2604 2599 { 2605 2600 // if this is only for deinterlacing mode switching, draw 2606 2601 // the border areas, presumably the main image is undamaged.