[gtk+/wip/alexl/broadway4: 37/39] broadway: Fix texture hash function
- From: Alexander Larsson <alexl src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk+/wip/alexl/broadway4: 37/39] broadway: Fix texture hash function
- Date: Thu, 30 Nov 2017 20:59:27 +0000 (UTC)
commit d43008b2a5cad4c41dc92c7e3bd57b51b6e3de0f
Author: Alexander Larsson <alexl redhat com>
Date: Thu Nov 30 17:30:27 2017 +0100
broadway: Fix texture hash function
gdk/broadway/gdkdisplay-broadway.c | 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/gdk/broadway/gdkdisplay-broadway.c b/gdk/broadway/gdkdisplay-broadway.c
index 4d1b0a4..528d33c 100644
--- a/gdk/broadway/gdkdisplay-broadway.c
+++ b/gdk/broadway/gdkdisplay-broadway.c
@@ -111,8 +111,8 @@ gdk_texture_hash (GdkTexture *self)
data = cairo_image_surface_get_data (surface);
stride = cairo_image_surface_get_stride (surface);
- width = MAX (self->width, 4);
- height = MAX (self->height, 4);
+ width = MIN (self->width, 4);
+ height = MIN (self->height, 4);
sum = 0;
for (y = 0; y < height; y++, data += stride)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]