Update to 0.5. Include a patch to fix -c.
From James Turner (MAINTAINER). ok kili@
This commit is contained in:
parent
dd8e5c9eef
commit
1305d01ff9
@ -1,8 +1,8 @@
|
||||
# $OpenBSD: Makefile,v 1.1.1.1 2008/07/16 16:16:14 merdely Exp $
|
||||
# $OpenBSD: Makefile,v 1.2 2009/02/08 20:41:22 merdely Exp $
|
||||
|
||||
COMMENT = simple background setter
|
||||
|
||||
VERSION = 0.4
|
||||
VERSION = 0.5
|
||||
DISTNAME = bgs-${VERSION}
|
||||
CATEGORIES = x11 graphics
|
||||
|
||||
|
@ -1,5 +1,5 @@
|
||||
MD5 (bgs-0.4.tar.gz) = z4nFv4/vb87IHSS/C9qivw==
|
||||
RMD160 (bgs-0.4.tar.gz) = FDitioZSRoYyQqEOPWZSiWHtXyc=
|
||||
SHA1 (bgs-0.4.tar.gz) = 8UOEVFjByTH2Kpm3pJKZfJk65jY=
|
||||
SHA256 (bgs-0.4.tar.gz) = 8a2BKYyO3CXFKPYn3JcrDIzISeZe0fzWKcujChgblH4=
|
||||
SIZE (bgs-0.4.tar.gz) = 4345
|
||||
MD5 (bgs-0.5.tar.gz) = Ufrv9VjZG1ZXlw5davOYVA==
|
||||
RMD160 (bgs-0.5.tar.gz) = hfMzWFUTmNZ211/RTqIJ3qjhbN4=
|
||||
SHA1 (bgs-0.5.tar.gz) = oeT/uHRb37xXTBKK4PMTU03prh8=
|
||||
SHA256 (bgs-0.5.tar.gz) = nAnWu9yKhxD0P9+lupDHpL+5QNhsLanfu5Jb/IRJg6w=
|
||||
SIZE (bgs-0.5.tar.gz) = 4619
|
||||
|
27
x11/bgs/patches/patch-bgs_c
Normal file
27
x11/bgs/patches/patch-bgs_c
Normal file
@ -0,0 +1,27 @@
|
||||
$OpenBSD: patch-bgs_c,v 1.1 2009/02/08 20:41:22 merdely Exp $
|
||||
--- bgs.c.orig Sun Feb 8 15:14:04 2009
|
||||
+++ bgs.c Sun Feb 8 15:16:44 2009
|
||||
@@ -87,17 +87,19 @@ drawbg(void) {
|
||||
}
|
||||
imlib_context_set_image(buffer);
|
||||
if(center) {
|
||||
- nw = (monitors[i].w - w) / 2;
|
||||
- nh = (monitors[i].h - h) / 2;
|
||||
+ nw = w;
|
||||
+ nh = h;
|
||||
+ nx = (monitors[i].w - w) / 2;
|
||||
+ ny = (monitors[i].h - h) / 2;
|
||||
}
|
||||
else {
|
||||
factor = MAX((double)w / monitors[i].w,
|
||||
(double)h / monitors[i].h);
|
||||
nw = w / factor;
|
||||
nh = h / factor;
|
||||
+ nx = monitors[i].x + (monitors[i].w - nw) / 2;
|
||||
+ ny = monitors[i].y + (monitors[i].h - nh) / 2;
|
||||
}
|
||||
- nx = monitors[i].x + (monitors[i].w - nw) / 2;
|
||||
- ny = monitors[i].y + (monitors[i].h - nh) / 2;
|
||||
imlib_blend_image_onto_image(tmpimg, 0, 0, 0, w, h,
|
||||
nx, ny, nw, nh);
|
||||
imlib_context_set_image(tmpimg);
|
@ -1,7 +1,7 @@
|
||||
$OpenBSD: patch-config_mk,v 1.1.1.1 2008/07/16 16:16:14 merdely Exp $
|
||||
--- config.mk.orig Mon Jul 14 11:57:28 2008
|
||||
+++ config.mk Wed Jul 16 10:56:32 2008
|
||||
@@ -4,31 +4,28 @@ VERSION = 0.4
|
||||
$OpenBSD: patch-config_mk,v 1.2 2009/02/08 20:41:22 merdely Exp $
|
||||
--- config.mk.orig Wed Jan 21 06:06:04 2009
|
||||
+++ config.mk Sun Feb 8 15:13:56 2009
|
||||
@@ -4,31 +4,28 @@ VERSION = 0.5
|
||||
# Customize below to fit your system
|
||||
|
||||
# paths
|
||||
@ -24,7 +24,7 @@ $OpenBSD: patch-config_mk,v 1.1.1.1 2008/07/16 16:16:14 merdely Exp $
|
||||
|
||||
# includes and libs
|
||||
-INCS = -I. -I/usr/include -I${X11INC} -I ${IMLIB2INC}
|
||||
-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS} -L ${IMLIB2LIB} -lImlib2
|
||||
-LIBS = -L/usr/lib -lc -L${X11LIB} -lX11 ${XINERAMALIBS} -L${IMLIB2LIB} -lImlib2
|
||||
+INCS = -I${X11INC} -I${LOCALBASE}/include
|
||||
+LIBS = -L${X11LIB} -lX11 ${XINERAMALIBS} -L${LOCALBASE}/lib -lImlib2
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user