@@ -178,12 +178,12 @@ static void set_color_scheme(const char *scheme_name) {
178178 colors [MIN_ERROR_COLOR ] = C_GREEN ; // Green for min error
179179 } else if (strcmp (scheme_name , "dark2" ) == 0 ) {
180180 // Blue-yellow lines for dark terminals
181- colors [LINE_COLOR ] = C_BLUE ; // Blue for plot line
182- line2color = C_YELLOW ; // Yellow for second plot line
183- colors [AXES_COLOR ] = C_CYAN ; // Cyan for axes
184- colors [TEXT_COLOR ] = C_WHITE ; // White for text
185- colors [TITLE_COLOR ] = C_GREEN ; // Green for title
186- colors [MAX_ERROR_COLOR ] = C_RED ; // Red for max error
181+ colors [LINE_COLOR ] = C_BLUE ; // Blue for plot line
182+ line2color = C_YELLOW ; // Yellow for second plot line
183+ colors [AXES_COLOR ] = C_CYAN ; // Cyan for axes
184+ colors [TEXT_COLOR ] = C_WHITE ; // White for text
185+ colors [TITLE_COLOR ] = C_GREEN ; // Green for title
186+ colors [MAX_ERROR_COLOR ] = C_RED ; // Red for max error
187187 colors [MIN_ERROR_COLOR ] = C_MAGENTA ; // Magenta for min error
188188 } else if (strcmp (scheme_name , "light1" ) == 0 ) {
189189 // Green-blue-red scheme for light terminals
@@ -489,7 +489,8 @@ static void plot_values(int ph, int pw, double *v1, double *v2, double max, doub
489489 attroff (COLOR_PAIR (LINE_COLOR + 1 ));
490490}
491491
492- // braille (2x4) bits indexed [(y%4)*2 + (x&1)]; quadrant (2x2) bits indexed [(y%2)*2 + (x&1)]
492+ // braille (2x4) bits indexed [(y%4)*2 + (x&1)]; quadrant (2x2) bits indexed [(y%2)*2 +
493+ // (x&1)]
493494static const unsigned char braille_bits [8 ] = {0x01 , 0x08 , 0x02 , 0x10 ,
494495 0x04 , 0x20 , 0x40 , 0x80 };
495496static const unsigned char quad_bits [4 ] = {1 , 2 , 4 , 8 };
@@ -500,7 +501,8 @@ static const wchar_t quad_glyphs[16] = {L' ', 0x2598, 0x259D, 0x2580, 0x2596,
500501// Render v1/v2 onto a sub-cell pixel grid (sub vertical pixels per cell, 2 horizontal).
501502// glyphs==NULL selects braille (U+2800+bits); otherwise a 16-entry quadrant table.
502503static void plot_dots (int ph , int pw , double * v1 , double * v2 , double max , double min ,
503- int n , int sub , const unsigned char * bits , const wchar_t * glyphs ) {
504+ int n , int sub , const unsigned char * bits ,
505+ const wchar_t * glyphs ) {
504506 const int first_col = 3 ;
505507 const int dh = ph * sub , dw = pw * 2 ;
506508
0 commit comments