mirror of
https://gitlab.freedesktop.org/wayland/wayland.git
synced 2025-11-11 13:29:49 -05:00
Define MULT outside the HAVE_CAIRO_GL #ifdef
This commit is contained in:
parent
32ff69017a
commit
1f5d507596
1 changed files with 3 additions and 3 deletions
|
|
@ -161,6 +161,9 @@ struct surface_data {
|
|||
struct wl_buffer *buffer;
|
||||
};
|
||||
|
||||
#define MULT(_d,c,a,t) \
|
||||
do { t = c * a + 0x7f; _d = ((t >> 8) + t) >> 8; } while (0)
|
||||
|
||||
#ifdef HAVE_CAIRO_GL
|
||||
|
||||
struct drm_surface_data {
|
||||
|
|
@ -282,9 +285,6 @@ display_create_drm_surface_from_file(struct display *display,
|
|||
while (p < end) {
|
||||
unsigned int t;
|
||||
|
||||
#define MULT(_d,c,a,t) \
|
||||
do { t = c * a + 0x7f; _d = ((t >> 8) + t) >> 8; } while (0)
|
||||
|
||||
MULT(p[0], p[0], p[3], t);
|
||||
MULT(p[1], p[1], p[3], t);
|
||||
MULT(p[2], p[2], p[3], t);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue