Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Dunbar <daniel@zuster.org>2005-03-28 09:55:45 +0400
committerDaniel Dunbar <daniel@zuster.org>2005-03-28 09:55:45 +0400
commita0feaebfa5f591ffaa0b4fafa99acd081691f890 (patch)
tree9fce1eb6759938a5a982273cba3817713c23a976 /source/blender/src/mywindow.c
parent51ca37b9953c36e0f325c8c60e2a79ced416b895 (diff)
- added set_framebuffer_index_color (shortcut for
cpack(index_to_framebuffer(index)) but that is all that is ever used.
Diffstat (limited to 'source/blender/src/mywindow.c')
-rw-r--r--source/blender/src/mywindow.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/source/blender/src/mywindow.c b/source/blender/src/mywindow.c
index d57d4dde6ba..5a0d8eb3ce1 100644
--- a/source/blender/src/mywindow.c
+++ b/source/blender/src/mywindow.c
@@ -490,7 +490,7 @@ void mywindow(float x1, float x2, float y1, float y2, float n, float f)
/* apple seems to round colors to below and up on some configs */
-unsigned int index_to_framebuffer(int index)
+static unsigned int index_to_framebuffer(int index)
{
unsigned int i= index;
@@ -520,7 +520,7 @@ unsigned int index_to_framebuffer(int index)
/* this is the old method as being in use for ages.... seems to work? colors are rounded to lower values */
-unsigned int index_to_framebuffer(int index)
+static unsigned int index_to_framebuffer(int index)
{
unsigned int i= index;
@@ -552,6 +552,11 @@ unsigned int index_to_framebuffer(int index)
#endif
+void set_framebuffer_index_color(int index)
+{
+ cpack(index_to_framebuffer(index));
+}
+
int framebuffer_to_index(unsigned int col)
{
if (col==0) return 0;