aboutsummaryrefslogtreecommitdiffstats
path: root/pugl/detail/x11_cairo.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2019-07-22 18:49:09 +0200
committerDavid Robillard <d@drobilla.net>2019-09-03 08:34:38 +0200
commit816607027012de0205e144f3edd3fdcfd43db563 (patch)
tree6baafc16e21b6186c51d9ada7c97116b6a30811c /pugl/detail/x11_cairo.c
parentf76954359229c25a6c9d29d6de3e75ab3a25f8dd (diff)
downloadpugl-816607027012de0205e144f3edd3fdcfd43db563.tar.gz
pugl-816607027012de0205e144f3edd3fdcfd43db563.tar.bz2
pugl-816607027012de0205e144f3edd3fdcfd43db563.zip
Add functions to get and set view size and position
Diffstat (limited to 'pugl/detail/x11_cairo.c')
-rw-r--r--pugl/detail/x11_cairo.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/pugl/detail/x11_cairo.c b/pugl/detail/x11_cairo.c
index d5e2ed7..550144a 100644
--- a/pugl/detail/x11_cairo.c
+++ b/pugl/detail/x11_cairo.c
@@ -55,8 +55,8 @@ static int
puglX11CairoCreate(PuglView* view)
{
PuglInternals* const impl = view->impl;
- const int width = view->width;
- const int height = view->height;
+ const int width = (int)view->frame.width;
+ const int height = (int)view->frame.height;
PuglX11CairoSurface surface = { 0 };
surface.back = cairo_xlib_surface_create(