File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 3434#include <GL/glut.h>
3535#endif
3636
37- sh1106_colour_t oled_colour_g ;
37+ sh1106_colour_t sh1106_oled_colour_g ;
3838float sh1106_pix_size_g = 1.0 ;
3939float sh1106_pix_gap_g = 0.0 ;
4040
4949sh1106_gl_init (float pix_size , sh1106_colour_t oled_colour )
5050{
5151 sh1106_pix_size_g = pix_size ;
52- oled_colour_g = oled_colour ;
52+ sh1106_oled_colour_g = oled_colour ;
5353}
5454
5555void
5656sh1106_gl_set_colour (uint8_t invert , float opacity )
5757{
5858 if (invert )
5959 {
60- glColor4f (sh1106_colours [oled_colour_g ][0 ],
61- sh1106_colours [oled_colour_g ][1 ],
62- sh1106_colours [oled_colour_g ][2 ],
60+ glColor4f (sh1106_colours [sh1106_oled_colour_g ][0 ],
61+ sh1106_colours [sh1106_oled_colour_g ][1 ],
62+ sh1106_colours [sh1106_oled_colour_g ][2 ],
6363 opacity );
6464 } else
6565 {
You can’t perform that action at this time.
0 commit comments