[Rawstudio-commit] r1691 - trunk/src
Anders Brander
anders at brander.dk
Wed Mar 26 08:32:24 CET 2008
Author: abrander
Date: 2008-03-26 08:32:23 +0100 (Wed, 26 Mar 2008)
New Revision: 1691
Modified:
trunk/src/rawstudio.c
trunk/src/rawstudio.h
Log:
Added rs_rect_from_gdkrectangle().
Modified: trunk/src/rawstudio.c
===================================================================
--- trunk/src/rawstudio.c 2008-03-26 06:41:41 UTC (rev 1690)
+++ trunk/src/rawstudio.c 2008-03-26 07:32:23 UTC (rev 1691)
@@ -893,6 +893,15 @@
return;
}
+inline void
+rs_rect_from_gdkrectangle(GdkRectangle *in, RS_RECT *out)
+{
+ out->x1 = in->x;
+ out->y1 = in->y;
+ out->x2 = in->x+in->width;
+ out->y2 = in->y+in->height;
+}
+
void
check_install()
{
Modified: trunk/src/rawstudio.h
===================================================================
--- trunk/src/rawstudio.h 2008-03-26 06:41:41 UTC (rev 1690)
+++ trunk/src/rawstudio.h 2008-03-26 07:32:23 UTC (rev 1691)
@@ -289,6 +289,7 @@
void rs_rect_flip(RS_RECT *in, RS_RECT *out, gint w, gint h);
void rs_rect_mirror(RS_RECT *in, RS_RECT *out, gint w, gint h);
void rs_rect_rotate(RS_RECT *in, RS_RECT *out, gint w, gint h, gint quarterturns);
+extern inline void rs_rect_from_gdkrectangle(GdkRectangle *in, RS_RECT *out);
#if !GLIB_CHECK_VERSION(2,8,0)
int g_mkdir_with_parents (const gchar *pathname, int mode);
int g_access (const gchar *filename, int mode);
More information about the Rawstudio-commit
mailing list