projects
/
xscreensaver
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
http://apple.doit.wisc.edu/mirrors/amug/linux/linuxppc/sources/tarballs/xscreensaver...
[xscreensaver]
/
driver
/
splash.c
diff --git
a/driver/splash.c
b/driver/splash.c
index 8f6fb011249ad9fd72dee71aeaf4b896ac051cd9..fabd8824d0a15828d9d1f82acf8d19bafdc548be 100644
(file)
--- a/
driver/splash.c
+++ b/
driver/splash.c
@@
-343,13
+343,13
@@
make_splash_dialog (saver_info *si)
attrs.event_mask = (ExposureMask | ButtonPressMask | ButtonReleaseMask);
{
attrs.event_mask = (ExposureMask | ButtonPressMask | ButtonReleaseMask);
{
-
Dimension w = WidthOfScreen(screen)
;
-
Dimension h = HeightOfScreen(screen
);
+
int sx, sy, w, h
;
+
get_screen_viewport (si->default_screen, &sx, &sy, &w, &h, False
);
if (si->prefs.debug_p) w /= 2;
if (si->prefs.debug_p) w /= 2;
- x =
((w + sp->width) / 2) - sp->width
;
- y =
((h + sp->height) / 2) - sp->height
;
- if (x <
0) x = 0
;
- if (y <
0) y = 0
;
+ x =
sx + (((w + sp->width) / 2) - sp->width)
;
+ y =
sy + (((h + sp->height) / 2) - sp->height)
;
+ if (x <
sx) x = sx
;
+ if (y <
sy) y = sy
;
}
bw = get_integer_resource ("splash.borderWidth", "Dialog.BorderWidth");
}
bw = get_integer_resource ("splash.borderWidth", "Dialog.BorderWidth");