diff options
author | David Robillard <d@drobilla.net> | 2025-01-22 18:42:12 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2025-01-22 18:42:12 -0500 |
commit | 8905c1176aa5099545fd9abb2e673efc136d0311 (patch) | |
tree | 5bc2b2e01d0583147089ca910aac3880b5404089 /src/x11_cairo.c | |
parent | 1dce4defe62b5e0ed70460b52c444dc51a701e18 (diff) | |
download | pugl-8905c1176aa5099545fd9abb2e673efc136d0311.tar.gz pugl-8905c1176aa5099545fd9abb2e673efc136d0311.tar.bz2 pugl-8905c1176aa5099545fd9abb2e673efc136d0311.zip |
Rename PuglViewSize to PuglArea
Diffstat (limited to 'src/x11_cairo.c')
-rw-r--r-- | src/x11_cairo.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/src/x11_cairo.c b/src/x11_cairo.c index d6fbaec..ff0b154 100644 --- a/src/x11_cairo.c +++ b/src/x11_cairo.c @@ -19,10 +19,10 @@ typedef struct { cairo_t* cr; } PuglX11CairoSurface; -static PuglViewSize +static PuglArea puglX11CairoGetViewSize(const PuglView* const view) { - PuglViewSize size = {0U, 0U}; + PuglArea size = {0U, 0U}; if (view->lastConfigure.type == PUGL_CONFIGURE) { // Use the size of the last configured frame @@ -97,11 +97,11 @@ puglX11CairoEnter(PuglView* view, const PuglExposeEvent* expose) PuglStatus st = PUGL_SUCCESS; if (expose) { - const PuglViewSize viewSize = puglX11CairoGetViewSize(view); - const PuglSpan right = (PuglSpan)(expose->x + expose->width); - const PuglSpan bottom = (PuglSpan)(expose->y + expose->height); - const PuglSpan surfaceWidth = MAX(right, viewSize.width); - const PuglSpan surfaceHeight = MAX(bottom, viewSize.height); + const PuglArea viewSize = puglX11CairoGetViewSize(view); + const PuglSpan right = (PuglSpan)(expose->x + expose->width); + const PuglSpan bottom = (PuglSpan)(expose->y + expose->height); + const PuglSpan surfaceWidth = MAX(right, viewSize.width); + const PuglSpan surfaceHeight = MAX(bottom, viewSize.height); if (!(st = puglX11CairoOpen(view, surfaceWidth, surfaceHeight))) { surface->cr = cairo_create(surface->front); if (cairo_status(surface->cr)) { |