Pass the GravityPoint as const* instead of by value
Mikael Magnusson mikachu@gmail.com
7 files changed,
11 insertions(+),
11 deletions(-)
M
openbox/screen.c
→
openbox/screen.c
@@ -1930,7 +1930,7 @@ return a == b;
} void screen_apply_gravity_point(gint *x, gint *y, gint width, gint height, - GravityPoint *position, const Rect *area) + const GravityPoint *position, const Rect *area) { if (position->x.center) *x = area->width / 2 - width / 2;
M
openbox/screen.h
→
openbox/screen.h
@@ -186,5 +186,5 @@ /*! Resolve a gravity point into absolute coordinates.
* width and height are the size of the object being placed, used for * aligning to right/bottom edges of the area. */ void screen_apply_gravity_point(gint *x, gint *y, gint width, gint height, - GravityPoint *position, const Rect *area); + const GravityPoint *position, const Rect *area); #endif