19 lines
558 B
Plaintext
19 lines
558 B
Plaintext
$OpenBSD: patch-bgs_c,v 1.2 2015/05/23 11:58:19 jung Exp $
|
|
--- bgs.c.orig Tue May 12 11:09:52 2015
|
|
+++ bgs.c Fri May 22 21:32:54 2015
|
|
@@ -94,10 +94,10 @@ drawbg(void) {
|
|
imlib_context_set_image(buffer);
|
|
switch(mode) {
|
|
case ModeCenter:
|
|
- nw = (monitors[i].w - w) / 2;
|
|
- nh = (monitors[i].h - h) / 2;
|
|
- nx = monitors[i].x + (monitors[i].w - nw) / 2;
|
|
- ny = monitors[i].y + (monitors[i].h - nh) / 2;
|
|
+ nw = w;
|
|
+ nh = h;
|
|
+ nx = (monitors[i].w - w) / 2;
|
|
+ ny = (monitors[i].h - h) / 2;
|
|
break;
|
|
case ModeZoom:
|
|
nw = monitors[i].w;
|