ports/x11/bgs/patches/patch-bgs_c

17 lines
499 B
Text

--- 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;