• Miklos Vajna's avatar
    tdf#124756 slideshow: avoid mbPaintDisabled for media windows · d7f4f565
    Miklos Vajna yazdı
    Commit 3e009203 (tdf#112318 sd opengl:
    fix lack of initial animation, 2019-04-05) enabled processing of idle
    events between two updates of the slideshow to help OpenGL, which
    uncovered a problem with media shapes.
    
    On one hand,
    slideshow::internal::ViewMediaShape::implInitializePlayerWindow() calls
    EnablePaint(false) on the media window. OTOH,
    vcl::Window::ImplCallPaint() handles mbPaintDisabled by invalidating the
    relevant area of the window, which causes a paint<->invalidate loop.
    
    Fix the problem by nominally still enabling paints on the media window:
    nothing will change in practice (since the actual media overlay will be
    on top of it), but this way the loop goes away.
    
    mbPaintDisabled is handled like this since the initial import, the media
    window flag was added much later, so it makes more sense to adapt the
    later.
    
    Change-Id: Ib89b68d93aa9d09dbcad33eb6e75a8a25ef1b752
    Reviewed-on: https://gerrit.libreoffice.org/70869Reviewed-by: 's avatarMiklos Vajna <vmiklos@collabora.com>
    Tested-by: Jenkins
    d7f4f565
Adı
Son kayıt (commit)
Son güncelleme
..
inc/pch Loading commit data...
opengl Loading commit data...
qa Loading commit data...
source Loading commit data...
test Loading commit data...
util Loading commit data...
CppunitTest_slideshow.mk Loading commit data...
Executable_demoshow.mk Loading commit data...
Library_OGLTrans.mk Loading commit data...
Library_slideshow.mk Loading commit data...
Makefile Loading commit data...
Module_slideshow.mk Loading commit data...
Package_opengl.mk Loading commit data...
README Loading commit data...
manifest.txt Loading commit data...