diff options
author | Richard Grenville <[email protected]> | 2013-03-25 11:36:39 +0800 |
---|---|---|
committer | Richard Grenville <[email protected]> | 2013-03-25 11:36:39 +0800 |
commit | 47f7b4072200463557ff692d41bf621f6954604f (patch) | |
tree | b4d5f4d84151cb6fb45bfceadecd0b038637185f /common.h | |
parent | e9ea554fa6f246cc17e578bb3af4c1f9847e57ad (diff) | |
download | tdebase-47f7b4072200463557ff692d41bf621f6954604f.tar.gz tdebase-47f7b4072200463557ff692d41bf621f6954604f.zip |
Bug fix: GLX: Fix --inactive-dim & fix color inversion
- GLX backend: Fix broken --inactive-dim.
- GLX backend: Fix bugs when inverting colors of windows. Thanks to
madsy and neure for help.
- GLX backend: Lift `glx_no_stencil` restriction from glx_init_blur().
It still probably won't work, but the user can try.
- XRender backend: Use XRenderFillRectangles() instead of
XRenderComposite() to do dimming.
Diffstat (limited to 'common.h')
-rw-r--r-- | common.h | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -878,9 +878,6 @@ typedef struct _win { // Dim-related members /// Whether the window is to be dimmed. bool dim; - /// Picture for dimming. Affected by user-specified inactive dim - /// opacity and window opacity. - Picture dim_alpha_pict; /// Whether to invert window color. bool invert_color; @@ -1642,6 +1639,10 @@ glx_blur_dst(session_t *ps, int dx, int dy, int width, int height, float z, GLfloat factor_center); bool +glx_dim_dst(session_t *ps, int dx, int dy, int width, int height, float z, + GLfloat factor); + +bool glx_render(session_t *ps, const glx_texture_t *ptex, int x, int y, int dx, int dy, int width, int height, int z, double opacity, bool neg, XserverRegion reg_tgt); |