]> git.sesse.net Git - vlc/commit
skins2(Linux and Win): fix transparency issue at window level
authorErwan Tulou <erwan10@videolan.org>
Thu, 7 Jan 2010 12:42:36 +0000 (13:42 +0100)
committerErwan Tulou <erwan10@videolan.org>
Thu, 7 Jan 2010 18:48:03 +0000 (19:48 +0100)
commita2fa93d5f0b1585a12497c4baa0a1321c118998b
tree704cff2b7cd6eb796f13a4fa15308027e625e80d
parentf980341ba088613284a05fa6ec1f127ee5af29cd
skins2(Linux and Win): fix transparency issue at window level

When refreshing a window area, the window mask must first be stripped of this
 area, because the new refresh may not result in the same mask being applied.

This patch corrects the following issues :
- an animated bitmap with transparency varying from one subimage to the next
  is now guaranteed the previous subimage won't leave any trace.
- a control that becomes invisible now means transparency is restored
 if no other controls exist for the same area (instead of an undefined and visually unpleasant area)
modules/gui/skins2/src/generic_layout.cpp
modules/gui/skins2/src/os_graphics.hpp
modules/gui/skins2/win32/win32_graphics.cpp
modules/gui/skins2/win32/win32_graphics.hpp
modules/gui/skins2/x11/x11_graphics.cpp
modules/gui/skins2/x11/x11_graphics.hpp