From 3f266040c0cb662320cd881c3b727db642f1551a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20K=C3=BChling?= Date: Thu, 3 Feb 2011 22:24:11 +0100 Subject: [PATCH] zgv: fix thumbnail-less file-browser true-color support ('v' key) --- zgv/Makefile | 2 +- zgv/patches/030-truecolor-support.patch | 22 +++++++++++++++++++--- 2 files changed, 20 insertions(+), 4 deletions(-) diff --git a/zgv/Makefile b/zgv/Makefile index 76917ce..d3dd3d5 100644 --- a/zgv/Makefile +++ b/zgv/Makefile @@ -12,7 +12,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=zgv PKG_VERSION:=5.9 -PKG_RELEASE:=1 +PKG_RELEASE:=2 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=http://www.svgalib.org/rus/zgv/ PKG_MD5SUM:=d65a434ddeb612f0c488177f873afad2 diff --git a/zgv/patches/030-truecolor-support.patch b/zgv/patches/030-truecolor-support.patch index 3b90be4..549b6d0 100644 --- a/zgv/patches/030-truecolor-support.patch +++ b/zgv/patches/030-truecolor-support.patch @@ -1,7 +1,7 @@ Index: zgv-5.9/src/zgv.c =================================================================== --- zgv-5.9.orig/src/zgv.c 2011-01-23 19:09:28.000000000 +0100 -+++ zgv-5.9/src/zgv.c 2011-01-29 14:37:36.000000000 +0100 ++++ zgv-5.9/src/zgv.c 2011-02-03 22:20:30.000000000 +0100 @@ -148,7 +148,8 @@ @@ -100,7 +100,23 @@ Index: zgv-5.9/src/zgv.c msgbox_draw_ok=1; gdfsiz=3-cfg.smallfstext; -@@ -2772,14 +2802,7 @@ +@@ -2734,10 +2764,11 @@ + { + /* no-thumbnails selector */ + barheight=GDFYBIT+6; +- idx_medium=MIDGREY; idx_dark=DARK; idx_light=LIGHT; idx_black=BLACK; +- idx_marked=MARKEDCOL; +- idx_blacknz=BLACK; +- if(fs_vgamode==G640x480x16) idx_medium=0; ++ idx_medium=MAKE332COL(cfg.medium.r,cfg.medium.g,cfg.medium.b); ++ idx_dark =MAKE332COL(cfg.dark.r ,cfg.dark.g ,cfg.dark.b ); ++ idx_light =MAKE332COL(cfg.light.r ,cfg.light.g ,cfg.light.b ); ++ idx_black =MAKE332COL(cfg.black.r ,cfg.black.g ,cfg.black.b ); ++ idx_marked=MAKE332COL(cfg.marked.r,cfg.marked.g,cfg.marked.b); + } + + if(!(cfg.xvpic_index && cfg.perfectindex)) +@@ -2772,14 +2803,7 @@ if(idx_medium) { @@ -116,7 +132,7 @@ Index: zgv-5.9/src/zgv.c } #ifndef BACKEND_SVGALIB else -@@ -2932,12 +2955,8 @@ +@@ -2932,12 +2956,8 @@ void clear_xvpic(int xpos,int ypos) {