]> git.saurik.com Git - wxWidgets.git/commitdiff
corrected wxMacSetColorTableEntry (although it is not needed currently)
authorStefan Csomor <csomor@advancedconcepts.ch>
Fri, 26 Apr 2002 17:40:23 +0000 (17:40 +0000)
committerStefan Csomor <csomor@advancedconcepts.ch>
Fri, 26 Apr 2002 17:40:23 +0000 (17:40 +0000)
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@15268 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775

src/mac/bitmap.cpp
src/mac/carbon/bitmap.cpp

index 394ba8c7335eb865c067f07cf2ccae4275d9a5fa..c8b6ea5a430d013936791d64ca93c8f565db1594 100644 (file)
@@ -59,9 +59,9 @@ void wxMacDestroyColorTable( CTabHandle colors )
 void wxMacSetColorTableEntry( CTabHandle newColors , int index , int red , int green ,  int blue )
 {
     (**newColors).ctTable[index].value = index;
 void wxMacSetColorTableEntry( CTabHandle newColors , int index , int red , int green ,  int blue )
 {
     (**newColors).ctTable[index].value = index;
-    (**newColors).ctTable[index].rgb.red = 0 ;// someRedValue;
-    (**newColors).ctTable[index].rgb.green = 0 ; // someGreenValue;
-    (**newColors).ctTable[index].rgb.blue = 0 ; // someBlueValue;
+    (**newColors).ctTable[index].rgb.red = red ;// someRedValue;
+    (**newColors).ctTable[index].rgb.green = green ; // someGreenValue;
+    (**newColors).ctTable[index].rgb.blue = blue ; // someBlueValue;
 }
 
 GWorldPtr wxMacCreateGWorld( int width , int height , int depth )
 }
 
 GWorldPtr wxMacCreateGWorld( int width , int height , int depth )
index 394ba8c7335eb865c067f07cf2ccae4275d9a5fa..c8b6ea5a430d013936791d64ca93c8f565db1594 100644 (file)
@@ -59,9 +59,9 @@ void wxMacDestroyColorTable( CTabHandle colors )
 void wxMacSetColorTableEntry( CTabHandle newColors , int index , int red , int green ,  int blue )
 {
     (**newColors).ctTable[index].value = index;
 void wxMacSetColorTableEntry( CTabHandle newColors , int index , int red , int green ,  int blue )
 {
     (**newColors).ctTable[index].value = index;
-    (**newColors).ctTable[index].rgb.red = 0 ;// someRedValue;
-    (**newColors).ctTable[index].rgb.green = 0 ; // someGreenValue;
-    (**newColors).ctTable[index].rgb.blue = 0 ; // someBlueValue;
+    (**newColors).ctTable[index].rgb.red = red ;// someRedValue;
+    (**newColors).ctTable[index].rgb.green = green ; // someGreenValue;
+    (**newColors).ctTable[index].rgb.blue = blue ; // someBlueValue;
 }
 
 GWorldPtr wxMacCreateGWorld( int width , int height , int depth )
 }
 
 GWorldPtr wxMacCreateGWorld( int width , int height , int depth )