Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 25808 Details for
Bug 41969
Patch to xrootconsole to allow it to parse RGB-colors as well as colornames.
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
The same patch as described in the bugreport, only this is an attachment
xrootconsole-0.4.parse-color.patch (text/plain), 840 bytes, created by
Martin Parm
on 2004-02-17 16:00:06 UTC
(
hide
)
Description:
The same patch as described in the bugreport, only this is an attachment
Filename:
MIME Type:
Creator:
Martin Parm
Created:
2004-02-17 16:00:06 UTC
Size:
840 bytes
patch
obsolete
>diff -u xrootconsole-0.4/util.c xrootconsole-0.4.new/util.c >--- xrootconsole-0.4/util.c 2000-10-10 04:17:53.000000000 +0200 >+++ xrootconsole-0.4.new/util.c 2004-02-17 23:59:45.000000000 +0100 >@@ -53,16 +53,16 @@ > > > unsigned long load_color(const char* s, Display *dpy) { >- XColor ce, cs; >+ XColor ce; > Colormap colormap = DefaultColormap(dpy, DefaultScreen(dpy)); > >- if (XLookupColor(dpy, colormap, s, &ce, &cs)) { >+ if (XParseColor(dpy, colormap, s, &ce)) { > if (XAllocColor(dpy, colormap, &ce)) return ce.pixel; > > fprintf(stderr, "Warning: could not allocate color\n"); > return WhitePixel(dpy, DefaultScreen(dpy)); > } > >- fprintf(stderr, "Warning: could not lookup color\n"); >+ fprintf(stderr, "Warning: could not parse color\n"); > return WhitePixel(dpy, DefaultScreen(dpy)); > }
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 41969
: 25808