mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-30 21:49:25 +00:00
65cf9d05d7
Submitted by: sprice
55 lines
2.1 KiB
Plaintext
55 lines
2.1 KiB
Plaintext
diff -u -N ../old/colour.c ./colour.c
|
|
--- ../old/colour.c Wed Mar 6 13:25:47 1996
|
|
+++ ./colour.c Thu Mar 7 16:41:36 1996
|
|
@@ -149,6 +149,10 @@
|
|
int r_best, g_best, b_best;
|
|
unsigned long pix_best;
|
|
|
|
+ if (r > 255) r = 255;
|
|
+ if (g > 255) g = 255;
|
|
+ if (b > 255) b = 255;
|
|
+
|
|
if(screendepth == 1)
|
|
{
|
|
if(r+g+b >= 3*128)
|
|
@@ -186,9 +190,15 @@
|
|
else /* > 8 bit */
|
|
{
|
|
if(r == 255 && g == 255 && b == 255)
|
|
+ {
|
|
pix_best = white;
|
|
+ r_best = g_best = b_best = 255;
|
|
+ }
|
|
else if(r == 0 && g == 0 && b == 0)
|
|
+ {
|
|
pix_best = black;
|
|
+ r_best = g_best = b_best = 0;
|
|
+ }
|
|
else
|
|
{
|
|
r_best = ((r + 4) / 8) * 8;
|
|
--- ../old/hpscan.icon Thu Jan 1 01:00:00 1970
|
|
+++ ./hpscan.icon Thu Mar 7 23:22:09 1996
|
|
@@ -0,0 +1,21 @@
|
|
+#define hpscan_width 50
|
|
+#define hpscan_height 30
|
|
+static unsigned char hpscan_bits[] = {
|
|
+ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x64, 0x54, 0x55, 0x55, 0x55,
|
|
+ 0x55, 0x01, 0x6a, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0x00, 0x64, 0x55, 0x55,
|
|
+ 0x55, 0x55, 0x55, 0x01, 0x62, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa, 0x00, 0x34,
|
|
+ 0x55, 0x55, 0x55, 0x55, 0x55, 0x01, 0xb2, 0xaa, 0xaa, 0xaa, 0xaa, 0xaa,
|
|
+ 0x00, 0x30, 0x55, 0x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