ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/rxvtimg.h
(Generate patch)

Comparing rxvt-unicode/src/rxvtimg.h (file contents):
Revision 1.24 by root, Thu Jun 7 21:28:10 2012 UTC vs.
Revision 1.25 by root, Fri Jun 8 20:35:43 2012 UTC

5 #define HAVE_IMG 1 5 #define HAVE_IMG 1
6#endif 6#endif
7 7
8#if HAVE_IMG 8#if HAVE_IMG
9 9
10#define float_to_component(d) ((d) * 65535.99) 10#define float_to_component(d) (uint16_t)((d) * 65535.99)
11 11
12#include <X11/extensions/Xrender.h> 12#include <X11/extensions/Xrender.h>
13 13
14class rxvt_img 14class rxvt_img
15{ 15{
64 this->repeat = repeat; 64 this->repeat = repeat;
65 } 65 }
66 66
67 void unshare (); // prepare for write 67 void unshare (); // prepare for write
68 void fill (const rxvt_color &c); 68 void fill (const rxvt_color &c);
69 void brightness (unsigned short r, unsigned short g, unsigned short b, unsigned short a); 69 void brightness (uint16_t r, uint16_t g, uint16_t b, uint16_t a);
70 void contrast (unsigned short r, unsigned short g, unsigned short b, unsigned short a); 70 void contrast (uint16_t r, uint16_t g, uint16_t b, uint16_t a);
71 71
72 void brightness (double r, double g, double b, double a = 1.) 72 void brightness (double r, double g, double b, double a = 1.)
73 { 73 {
74 brightness (float_to_component (r), 74 brightness (float_to_component (r),
75 float_to_component (g), 75 float_to_component (g),

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines