aboutsummaryrefslogtreecommitdiff
path: root/src/FbTk/ImageControl.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/FbTk/ImageControl.cc')
-rw-r--r--src/FbTk/ImageControl.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/FbTk/ImageControl.cc b/src/FbTk/ImageControl.cc
index b9c3685..38114c8 100644
--- a/src/FbTk/ImageControl.cc
+++ b/src/FbTk/ImageControl.cc
@@ -495,7 +495,7 @@ void ImageControl::createColorTable() {
495 for (int b = 0; b < m_colors_per_channel; b++, i++) { 495 for (int b = 0; b < m_colors_per_channel; b++, i++) {
496 m_colors[i].red = (r * 0xffff) / (m_colors_per_channel - 1); 496 m_colors[i].red = (r * 0xffff) / (m_colors_per_channel - 1);
497 m_colors[i].green = (g * 0xffff) / (m_colors_per_channel - 1); 497 m_colors[i].green = (g * 0xffff) / (m_colors_per_channel - 1);
498 m_colors[i].blue = (b * 0xffff) / (m_colors_per_channel - 1);; 498 m_colors[i].blue = (b * 0xffff) / (m_colors_per_channel - 1);
499 m_colors[i].flags = DoRed|DoGreen|DoBlue; 499 m_colors[i].flags = DoRed|DoGreen|DoBlue;
500 } 500 }
501 } 501 }
@@ -587,7 +587,7 @@ void ImageControl::createColorTable() {
587 for (unsigned int i = 0; i < m_num_colors; i++) { 587 for (unsigned int i = 0; i < m_num_colors; i++) {
588 m_colors[i].red = (i * 0xffff) / (m_colors_per_channel - 1); 588 m_colors[i].red = (i * 0xffff) / (m_colors_per_channel - 1);
589 m_colors[i].green = (i * 0xffff) / (m_colors_per_channel - 1); 589 m_colors[i].green = (i * 0xffff) / (m_colors_per_channel - 1);
590 m_colors[i].blue = (i * 0xffff) / (m_colors_per_channel - 1);; 590 m_colors[i].blue = (i * 0xffff) / (m_colors_per_channel - 1);
591 m_colors[i].flags = DoRed|DoGreen|DoBlue; 591 m_colors[i].flags = DoRed|DoGreen|DoBlue;
592 592
593 if (! XAllocColor(disp, m_colormap, 593 if (! XAllocColor(disp, m_colormap,