Mercurial > dwindows
diff gtk/dw.c @ 1472:1794caee0758
Initial versions of dw_window_set_gravity for Windows and OS/2.
Fixed an error in the gravity calculation for bottom on GTK.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Tue, 20 Dec 2011 16:10:13 +0000 |
parents | 26dbd11399d6 |
children | 1d414e81a099 |
line wrap: on
line diff
--- a/gtk/dw.c Tue Dec 20 15:05:14 2011 +0000 +++ b/gtk/dw.c Tue Dec 20 16:10:13 2011 +0000 @@ -10431,7 +10431,7 @@ if((vert & 0xf) == DW_GRAV_CENTER) newy += ((gdk_screen_height() / 2) - (height / 2)); else if((vert & 0xf) == DW_GRAV_BOTTOM) - newy = gdk_screen_height() - height - x; + newy = gdk_screen_height() - height - y; } if(GTK_WIDGET_MAPPED(handle)) {