xterm/xterm-decomposed_bitmaps.patch
Petr Cerny 1d46060398 Accepting request 372759 from home:pcerny:factory
- Patch #324 - 2016/03/10
  * updated configure macro CF_LD_RPATH_OPT from ncurses changes.
  * provide alternate fix for Juha Nurmela's report by turning on
    POSIX signals if _POSIX_C_SOURCE is at least one. This is
    done to improve the behavior if a direct child process
    receives a STOP signal.
  * revert change to CF_POSIX_C_SOURCE from patch #323
    (reports by Ashish Shukla, Christian Weisgerber).
- Patch #323 - 2016/03/07
  * updated appdata and desktop files to add keywords (report by
    Richard Hughes).
  * modify configure macro CF_POSIX_C_SOURCE to accommodate some
    systems, e.g., FreeBSD, which have separated their
    implementation specific preprocessor symbols from the POSIX
    ones, requiring both to be defined (report by Juha Nurmela).
  * change the directory to the current working dir of the child
    process in exec-formatted and exec-selectable actions (patch
    by Alexander Pohoyda).
  * correct typo in xterm.man (patch by Larry Hynes).
  * correct typo in ctlseqs.ms (report by Shriramana Sharma).
  * add feature to support XHTML and SVG screen dumps (patch by
    Jens Schweikhardt).
  * correct response to DECRQSS when terminal id is less than 400
    (patch by Iwamoto Kouichi).

OBS-URL: https://build.opensuse.org/request/show/372759
OBS-URL: https://build.opensuse.org/package/show/X11:terminals/xterm?expand=0&rev=138
2016-03-14 11:25:23 +00:00

43 lines
1.1 KiB
Diff

From: Egbert Eich <eich@suse.de>
Date: Tue Jun 3 18:17:07 2014 +0200
Subject: [PATCH]Fix number of colormap entries for DirectColor and TrueColor visuals
Patch-mainline: to be upstreamed
Git-commit: 071525466531009223f1c21a40aa2e081d5ef99a
Git-repo:
References: bnc#
Signed-off-by: Egbert Eich <eich@suse.com>
DirectColor and TrueColor have a decomposed colormap,
therefore the colormap_size field in the XVisualInfo
structure is meant per sub-field (take a look at the output
of xdpyinfo).
With 3 sub-fields there are colormap_size^3 entires.
Signed-off-by: Egbert Eich <eich@suse.de>
---
xterm-299/misc.c | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/misc.c b/misc.c
--- a/misc.c
+++ b/misc.c
@@ -2237,16 +2237,18 @@ ReportAnsiColorRequest(XtermWidget xw, i
}
static void
getColormapInfo(XtermWidget xw, unsigned *typep, unsigned *sizep)
{
if (getVisualInfo(xw)) {
*typep = (unsigned) xw->visInfo->class;
*sizep = (unsigned) xw->visInfo->colormap_size;
+ if (*typep > 3)
+ *sizep = (*sizep)*(*sizep)*(*sizep);
} else {
*typep = 0;
*sizep = 0;
}
}
#define MAX_COLORTABLE 4096