mirror of
https://github.com/brl/mutter.git
synced 2024-11-10 16:16:20 -05:00
Reduced MAX_TILE_SIZE to 8px so that shaddows work even with small windows
(e.g., tootips).
This commit is contained in:
parent
676a516ff2
commit
9f9df52ba6
@ -30,12 +30,12 @@
|
|||||||
#include <clutter/glx/clutter-glx.h>
|
#include <clutter/glx/clutter-glx.h>
|
||||||
|
|
||||||
#include <cogl/cogl.h>
|
#include <cogl/cogl.h>
|
||||||
#define SHADOW_RADIUS 10
|
#define SHADOW_RADIUS 8
|
||||||
#define SHADOW_OPACITY 0.9
|
#define SHADOW_OPACITY 0.9
|
||||||
#define SHADOW_OFFSET_X (-SHADOW_RADIUS)
|
#define SHADOW_OFFSET_X (-SHADOW_RADIUS)
|
||||||
#define SHADOW_OFFSET_Y (-SHADOW_RADIUS)
|
#define SHADOW_OFFSET_Y (-SHADOW_RADIUS)
|
||||||
|
|
||||||
#define MAX_TILE_SZ 30 /* make sure size/2 < MAX_TILE_SZ */
|
#define MAX_TILE_SZ 8 /* Must be <= shaddow radius */
|
||||||
#define TILE_WIDTH (3*MAX_TILE_SZ)
|
#define TILE_WIDTH (3*MAX_TILE_SZ)
|
||||||
#define TILE_HEIGHT (3*MAX_TILE_SZ)
|
#define TILE_HEIGHT (3*MAX_TILE_SZ)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user