diff --git a/include/pixmapstr.h b/include/pixmapstr.h index 849f09573..639046257 100644 --- a/include/pixmapstr.h +++ b/include/pixmapstr.h @@ -97,23 +97,13 @@ typedef struct _PixmapDirtyUpdate { struct pixman_f_transform f_transform, f_inverse; } PixmapDirtyUpdateRec; -static inline void -PixmapBox(BoxPtr box, PixmapPtr pixmap) -{ - box->x1 = 0; - box->x2 = pixmap->drawable.width; - - box->y1 = 0; - box->y2 = pixmap->drawable.height; -} - - static inline void PixmapRegionInit(RegionPtr region, PixmapPtr pixmap) { - BoxRec box; - - PixmapBox(&box, pixmap); + BoxRec box = { + .x2 = (int16_t)pixmap->drawable.width, + .y2 = (int16_t)pixmap->drawable.height, + }; RegionInit(region, &box, 1); }