18027
|
1 |
/*
|
|
2 |
* Copyright (c) 2009, 2010, Oracle and/or its affiliates. All rights reserved.
|
|
3 |
*
|
|
4 |
* Permission is hereby granted, free of charge, to any person obtaining a
|
|
5 |
* copy of this software and associated documentation files (the
|
|
6 |
* "Software"), to deal in the Software without restriction, including
|
|
7 |
* without limitation the rights to use, copy, modify, merge, publish,
|
|
8 |
* distribute, and/or sell copies of the Software, and to permit persons
|
|
9 |
* to whom the Software is furnished to do so, provided that the above
|
|
10 |
* copyright notice(s) and this permission notice appear in all copies of
|
|
11 |
* the Software and that both the above copyright notice(s) and this
|
|
12 |
* permission notice appear in supporting documentation.
|
|
13 |
*
|
|
14 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
|
|
15 |
* OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
16 |
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
|
|
17 |
* OF THIRD PARTY RIGHTS. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
|
|
18 |
* HOLDERS INCLUDED IN THIS NOTICE BE LIABLE FOR ANY CLAIM, OR ANY SPECIAL
|
|
19 |
* INDIRECT OR CONSEQUENTIAL DAMAGES, OR ANY DAMAGES WHATSOEVER RESULTING
|
|
20 |
* FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT,
|
|
21 |
* NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION
|
|
22 |
* WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
|
|
23 |
*
|
|
24 |
* Except as contained in this notice, the name of a copyright holder
|
|
25 |
* shall not be used in advertising or otherwise to promote the sale, use
|
|
26 |
* or other dealings in this Software without prior written authorization
|
|
27 |
* of the copyright holder.
|
|
28 |
*
|
|
29 |
*/
|
|
30 |
|
|
31 |
Use Sun/Solaris branding colors in various hacks to better match color schemes
|
|
32 |
of the rest of the desktop.
|
|
33 |
|
|
34 |
diff -Nurp -x '*~' -x '*.orig' xscreensaver-5.01/driver/XScreenSaver.ad.in xscreensaver-5.01/driver/XScreenSaver.ad.in
|
|
35 |
--- xscreensaver-5.01/driver/XScreenSaver.ad.in 2009-05-27 17:20:45.431525000 -0700
|
|
36 |
+++ xscreensaver-5.01/driver/XScreenSaver.ad.in 2009-05-27 17:21:04.048036000 -0700
|
|
37 |
@@ -309,7 +309,7 @@ GetViewPortIsFullOfLies: False
|
|
38 |
anemotaxis -root \n\
|
|
39 |
@GL_KLUDGE@ GL: antinspect -root \n\
|
|
40 |
fireworkx -root \n\
|
|
41 |
- fuzzyflakes -root \n\
|
|
42 |
+ fuzzyflakes -root -color A3B8CB \n\
|
|
43 |
interaggregate -root \n\
|
|
44 |
intermomentary -root \n\
|
|
45 |
memscroller -root \n\
|
|
46 |
diff -Nurp -x '*~' -x '*.orig' xscreensaver-5.01/hacks/glx/antinspect.c xscreensaver-5.01/hacks/glx/antinspect.c
|
|
47 |
--- xscreensaver-5.01/hacks/glx/antinspect.c 2006-02-25 12:13:26.000000000 -0800
|
|
48 |
+++ xscreensaver-5.01/hacks/glx/antinspect.c 2009-05-27 17:21:04.048572000 -0700
|
|
49 |
@@ -94,13 +94,13 @@ static const float position1[] = {-1.0,
|
|
50 |
static const float lmodel_ambient[] = {0.5, 0.5, 0.5, 1.0};
|
|
51 |
static const float lmodel_twoside[] = {GL_TRUE};
|
|
52 |
|
|
53 |
-static const float MaterialRed[] = {0.6, 0.0, 0.0, 1.0};
|
|
54 |
-static const float MaterialOrange[] = {1.0, 0.69, 0.00, 1.0};
|
|
55 |
-static const float MaterialGray[] = {0.2, 0.2, 0.2, 1.0};
|
|
56 |
+static const float MaterialRed[] = {0.90, 0.43, 0.0, 1.0};
|
|
57 |
+static const float MaterialOrange[] = {1.0, 0.78, 0.15, 1.0};
|
|
58 |
+static const float MaterialGray[] = {0.2, 0.21, 0.22, 1.0};
|
|
59 |
static const float MaterialBlack[] = {0.1, 0.1, 0.1, 0.4};
|
|
60 |
static const float MaterialShadow[] = {0.3, 0.3, 0.3, 0.3};
|
|
61 |
-static const float MaterialGray5[] = {0.5, 0.5, 0.5, 0.3};
|
|
62 |
-static const float MaterialGray6[] = {0.6, 0.6, 0.6, 1.0};
|
|
63 |
+static const float MaterialGray5[] = {0.5, 0.51, 0.53, 0.3};
|
|
64 |
+static const float MaterialGray6[] = {0.6, 0.61, 0.63, 1.0};
|
|
65 |
|
|
66 |
static antinspectstruct *antinspect = (antinspectstruct *) NULL;
|
|
67 |
|
|
68 |
diff -Nurp -x '*~' -x '*.orig' xscreensaver-5.01/hacks/glx/antmaze.c xscreensaver-5.01/hacks/glx/antmaze.c
|
|
69 |
--- xscreensaver-5.01/hacks/glx/antmaze.c 2006-03-14 19:55:05.000000000 -0800
|
|
70 |
+++ xscreensaver-5.01/hacks/glx/antmaze.c 2009-05-27 17:21:04.049372000 -0700
|
|
71 |
@@ -148,13 +148,13 @@ typedef struct {
|
|
72 |
static antmazestruct *antmaze = (antmazestruct *) NULL;
|
|
73 |
|
|
74 |
|
|
75 |
-static const GLfloat MaterialRed[] = {0.6, 0.0, 0.0, 1.0};
|
|
76 |
+static const GLfloat MaterialRed[] = {0.75, 0.40, 0.0, 1.0};
|
|
77 |
/*static const GLfloat MaterialMagenta[] = {0.6, 0.2, 0.5, 1.0};*/
|
|
78 |
static const GLfloat MaterialGray8[] = {0.8, 0.8, 0.8, 1.0};
|
|
79 |
-static const GLfloat MaterialGray35[] = {0.30, 0.30, 0.30, 1.0};
|
|
80 |
-static const GLfloat MaterialGray4[] = {0.40, 0.40, 0.40, 1.0};
|
|
81 |
-static const GLfloat MaterialOrange[] = {1.0, 0.69, 0.00, 1.0};
|
|
82 |
-static const GLfloat MaterialGreen[] = {0.1, 0.4, 0.2, 1.0};
|
|
83 |
+static const GLfloat MaterialGray35[] = {0.30, 0.31, 0.33, 1.0};
|
|
84 |
+static const GLfloat MaterialGray4[] = {0.4375, 0.4450, 0.4650, 1.0};
|
|
85 |
+static const GLfloat MaterialOrange[] = {0.90, 0.43, 0.00, 1.0};
|
|
86 |
+static const GLfloat MaterialGreen[] = {0.695, 0.734, 0.0, 1.0};
|
|
87 |
|
|
88 |
/* lighting variables */
|
|
89 |
static const GLfloat front_shininess[] = {60.0};
|
|
90 |
diff -Nurp -x '*~' -x '*.orig' xscreensaver-5.01/hacks/glx/flipflop.c xscreensaver-5.01/hacks/glx/flipflop.c
|
|
91 |
--- xscreensaver-5.01/hacks/glx/flipflop.c Thu Sep 14 01:58:04 2006
|
|
92 |
+++ xscreensaver-5.01/hacks/glx/flipflop.c Thu Jun 4 21:11:39 2009
|
|
93 |
@@ -602,6 +602,13 @@ randsheet_free( randsheet *rs )
|
|
94 |
free(rs->tex);
|
|
95 |
}
|
|
96 |
|
|
97 |
+
|
|
98 |
+static const float brand_colors[3][3] = {
|
|
99 |
+ {0.9023, 0.4336, 0.0000},
|
|
100 |
+ {0.6953, 0.7344, 0.0000},
|
|
101 |
+ {0.3242, 0.5078, 0.6289}
|
|
102 |
+};
|
|
103 |
+
|
|
104 |
static void
|
|
105 |
randsheet_initialize( randsheet *rs )
|
|
106 |
{
|
|
107 |
@@ -619,9 +626,13 @@ randsheet_initialize( randsheet *rs )
|
|
108 |
rs->xpos[ index ] = i;
|
|
109 |
rs->ypos[ index ] = j;
|
|
110 |
/* have the square colors start out as a pattern */
|
|
111 |
- rs->color[ index*3 + 0 ] = ((i+j)%3 == 0)||((i+j+1)%3 == 0);
|
|
112 |
- rs->color[ index*3 + 1 ] = ((i+j+1)%3 == 0);
|
|
113 |
- rs->color[ index*3 + 2 ] = ((i+j+2)%3 == 0);
|
|
114 |
+ rs->color[ index*3 + 0 ]
|
|
115 |
+ = brand_colors[ (i+j) % 3 ][0];
|
|
116 |
+ rs->color[ index*3 + 1 ]
|
|
117 |
+ = brand_colors[ (i+j) % 3 ][1];
|
|
118 |
+ rs->color[ index*3 + 2 ]
|
|
119 |
+ = brand_colors[ (i+j) % 3 ][2];
|
|
120 |
+
|
|
121 |
index++;
|
|
122 |
}
|
|
123 |
/* leave everything else empty*/
|
|
124 |
diff -Nurp -x '*~' -x '*.orig' xscreensaver-5.01/hacks/glx/sproingies.c xscreensaver-5.01/hacks/glx/sproingies.c
|
|
125 |
--- xscreensaver-5.01/hacks/glx/sproingies.c 2006-09-18 14:45:17.000000000 -0700
|
|
126 |
+++ xscreensaver-5.01/hacks/glx/sproingies.c 2009-05-27 17:21:04.050613000 -0700
|
|
127 |
@@ -113,9 +113,9 @@ build_TopsSides(int wireframe)
|
|
128 |
|
|
129 |
/* Surface: Tops */
|
|
130 |
glNewList(dl_num, GL_COMPILE);
|
|
131 |
- mat_color[0] = 0.392157;
|
|
132 |
- mat_color[1] = 0.784314;
|
|
133 |
- mat_color[2] = 0.941176;
|
|
134 |
+ mat_color[0] = 0.325490;
|
|
135 |
+ mat_color[1] = 0.509804;
|
|
136 |
+ mat_color[2] = 0.631373;
|
|
137 |
if (wireframe)
|
|
138 |
glColor3fv(mat_color);
|
|
139 |
else {
|
|
140 |
@@ -129,9 +129,9 @@ build_TopsSides(int wireframe)
|
|
141 |
glColor3fv(mat_color);
|
|
142 |
else {
|
|
143 |
/* jwz: in wireframe mode, color tops and sides the same. */
|
|
144 |
- mat_color[0] = 0.156863;
|
|
145 |
- mat_color[1] = 0.156863;
|
|
146 |
- mat_color[2] = 0.392157;
|
|
147 |
+ mat_color[0] = 0.207843;
|
|
148 |
+ mat_color[1] = 0.333333;
|
|
149 |
+ mat_color[2] = 0.419607;
|
|
150 |
glMaterialfv(GL_FRONT, GL_AMBIENT_AND_DIFFUSE, mat_color);
|
|
151 |
}
|
|
152 |
glEndList();
|
|
153 |
diff -Nurp -x '*~' -x '*.orig' xscreensaver-5.01/utils/colors.c xscreensaver-5.01/utils/colors.c
|
|
154 |
--- xscreensaver-5.01/utils/colors.c 2006-02-04 05:39:41.000000000 -0800
|
|
155 |
+++ xscreensaver-5.01/utils/colors.c 2009-05-27 17:21:04.051139000 -0700
|
|
156 |
@@ -598,6 +598,13 @@ make_uniform_colormap (Display *dpy, Vis
|
|
157 |
*ncolorsP = ncolors;
|
|
158 |
}
|
|
159 |
|
|
160 |
+/* Use branding colors first in random colormaps */
|
|
161 |
+#define NUM_BRANDING_COLORS 12
|
|
162 |
+static const XColor branding_colors[NUM_BRANDING_COLORS] = {
|
|
163 |
+ { 83, 130, 161}, {231, 111, 0}, {178, 188, 0}, {255, 199, 38},
|
|
164 |
+ { 53, 85, 107}, {192, 102, 0}, {127, 120, 0}, {198, 146, 0},
|
|
165 |
+ {163, 184, 203}, {237, 155, 79}, {197, 213, 169}, {248, 213, 131}
|
|
166 |
+};
|
|
167 |
|
|
168 |
void
|
|
169 |
make_random_colormap (Display *dpy, Visual *visual, Colormap cmap,
|
|
170 |
@@ -610,6 +617,7 @@ make_random_colormap (Display *dpy, Visu
|
|
171 |
Bool wanted_writable = (allocate_p && writable_pP && *writable_pP);
|
|
172 |
int ncolors = *ncolorsP;
|
|
173 |
int i;
|
|
174 |
+ int branding_color_offset = random() % NUM_BRANDING_COLORS;
|
|
175 |
Screen *screen = (dpy ? DefaultScreenOfDisplay(dpy) : 0); /* #### WRONG! */
|
|
176 |
|
|
177 |
if (*ncolorsP <= 0) return;
|
|
178 |
@@ -631,9 +639,16 @@ make_random_colormap (Display *dpy, Visu
|
|
179 |
}
|
|
180 |
else
|
|
181 |
{
|
|
182 |
+ if (i < NUM_BRANDING_COLORS) {
|
|
183 |
+ int n = (i + branding_color_offset) % NUM_BRANDING_COLORS;
|
|
184 |
+ colors[i].red = branding_colors[n].red;
|
|
185 |
+ colors[i].green = branding_colors[n].green;
|
|
186 |
+ colors[i].blue = branding_colors[n].blue;
|
|
187 |
+ } else {
|
|
188 |
colors[i].red = random() % 0xFFFF;
|
|
189 |
colors[i].green = random() % 0xFFFF;
|
|
190 |
colors[i].blue = random() % 0xFFFF;
|
|
191 |
+ }
|
|
192 |
}
|
|
193 |
}
|
|
194 |
|