broadway: Fix texture hash function

This commit is contained in:
Alexander Larsson 2017-11-30 17:30:27 +01:00
parent d95cbb2757
commit d43008b2a5

View File

@ -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)