summaryrefslogtreecommitdiff
path: root/src/mesa/drivers/windows/colors.h
diff options
context:
space:
mode:
authorKarl Schultz <kschultz@freedesktop.org>2002-01-15 18:14:34 +0000
committerKarl Schultz <kschultz@freedesktop.org>2002-01-15 18:14:34 +0000
commitf2e5c19a2fb2265fc686c06c0f58e2980a11b0ef (patch)
treeae1b38b7f1a61dd77ae997c67731e8fdff617832 /src/mesa/drivers/windows/colors.h
parent807aea838b4e83d1aebd4b2c33e03a100c3c2e31 (diff)
Fixed pixel color component problem and clear code for 24-bit Windows
devices. (Jeff Lewis)
Diffstat (limited to 'src/mesa/drivers/windows/colors.h')
-rw-r--r--src/mesa/drivers/windows/colors.h15
1 files changed, 14 insertions, 1 deletions
diff --git a/src/mesa/drivers/windows/colors.h b/src/mesa/drivers/windows/colors.h
index 2c59e53180..34d148b344 100644
--- a/src/mesa/drivers/windows/colors.h
+++ b/src/mesa/drivers/windows/colors.h
@@ -24,6 +24,10 @@
/*
* $Log: colors.h,v $
+ * Revision 1.3 2002/01/15 18:14:34 kschultz
+ * Fixed pixel color component problem and clear code for 24-bit Windows
+ * devices. (Jeff Lewis)
+ *
* Revision 1.2 2002/01/15 18:11:36 kschultz
* Remove trailing CR's. No logical changes.
*
@@ -42,6 +46,10 @@
/*
* $Log: colors.h,v $
+ * Revision 1.3 2002/01/15 18:14:34 kschultz
+ * Fixed pixel color component problem and clear code for 24-bit Windows
+ * devices. (Jeff Lewis)
+ *
* Revision 1.2 2002/01/15 18:11:36 kschultz
* Remove trailing CR's. No logical changes.
*
@@ -60,6 +68,10 @@
/*
* $Log: colors.h,v $
+ * Revision 1.3 2002/01/15 18:14:34 kschultz
+ * Fixed pixel color component problem and clear code for 24-bit Windows
+ * devices. (Jeff Lewis)
+ *
* Revision 1.2 2002/01/15 18:11:36 kschultz
* Remove trailing CR's. No logical changes.
*
@@ -126,7 +138,8 @@ char ColorMap16[] = {
#else
#define BGR16(r,g,b) ((WORD)(((BYTE)(ColorMap16[b]) | ((BYTE)(ColorMap16[g]) << 5)) | (((WORD)(BYTE)(ColorMap16[r])) << 10)))
#endif
-#define BGR24(r,g,b) (unsigned long)(((DWORD)(((BYTE)(b)|((WORD)((BYTE)(g))<<8))|(((DWORD)(BYTE)(r))<<16))) << 8)
+#define BGR24(r,g,b) (unsigned long)((DWORD)(((BYTE)(b)|((WORD)((BYTE)(g))<<8))|(((DWORD)(BYTE)(r))<<16)))
+
#define BGR32(r,g,b) (unsigned long)((DWORD)(((BYTE)(b)|((WORD)((BYTE)(g))<<8))|(((DWORD)(BYTE)(r))<<16)))