diff options
author | Stefano Karapetsas <[email protected]> | 2013-11-15 10:02:39 -0800 |
---|---|---|
committer | Stefano Karapetsas <[email protected]> | 2013-11-15 10:02:39 -0800 |
commit | 0403454e7f3c456effaa8ae83fad4afa7dcca581 (patch) | |
tree | 8513ca11cabb670f486f9e5867c42e4154b5daaa /src/ui/frames.c | |
parent | cf101a024b8749a1b2109e3a3b49a7a760124d2d (diff) | |
parent | 39f4aae72c83c5fa79b8ea84ac78e53a50d908ea (diff) | |
download | marco-0403454e7f3c456effaa8ae83fad4afa7dcca581.tar.bz2 marco-0403454e7f3c456effaa8ae83fad4afa7dcca581.tar.xz |
Merge pull request #67 from ryandoyle/master
Regression fix and typo
Diffstat (limited to 'src/ui/frames.c')
-rw-r--r-- | src/ui/frames.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/ui/frames.c b/src/ui/frames.c index 7b9a94bc..82bca2ab 100644 --- a/src/ui/frames.c +++ b/src/ui/frames.c @@ -2253,25 +2253,25 @@ generate_pixmap (MetaFrames *frames, static GdkPixmap * generate_pixmap (MetaFrames *frames, MetaUIFrame *frame, - MetaRectangle rect) + MetaRectangle *rect) { GdkRectangle rectangle; GdkRegion *region; GdkPixmap *result; /* do not create a pixmap for nonexisting areas */ - if (rect.width <= 0 || rect.height <= 0) + if (rect->width <= 0 || rect->height <= 0) return NULL; - rectangle.x = rect.x; - rectangle.y = rect.y; - rectangle.width = rect.width; - rectangle.height = rect.height; + rectangle.x = rect->x; + rectangle.y = rect->y; + rectangle.width = rect->width; + rectangle.height = rect->height; result = gdk_pixmap_new (frame->window, - rect.width, rect.height, -1); + rect->width, rect->height, -1); - clear_backing (result, frame->window, rect.x, rect.y); + clear_backing (result, frame->window, rect->x, rect->y); region = gdk_region_rectangle (&rectangle); |