Skip to content

Commit f13f6f1

Browse files
committed
spaces to tabs
1 parent cec3eb3 commit f13f6f1

File tree

1 file changed

+20
-20
lines changed

1 file changed

+20
-20
lines changed

libogc/console.c

Lines changed: 20 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -60,16 +60,16 @@ static const u32 RGB8_to_YCbCr(u8 r1, u8 g1, u8 b1, u8 r2, u8 g2, u8 b2)
6060
if (b2 > 240) b2 = 240;
6161

6262
u8 Y1 = ( 77 * r1 + 150 * g1 + 29 * b1) / 256;
63-
u8 Y2 = ( 77 * r2 + 150 * g2 + 29 * b2) / 256;
64-
u8 Cb = (112 * (b1 + b2) - 74 * (g1 + g2) - 38 * (r1 + r2)) / 512 + 128;
65-
u8 Cr = (112 * (r1 + r2) - 94 * (g1 + g2) - 18 * (b1 + b2)) / 512 + 128;
63+
u8 Y2 = ( 77 * r2 + 150 * g2 + 29 * b2) / 256;
64+
u8 Cb = (112 * (b1 + b2) - 74 * (g1 + g2) - 38 * (r1 + r2)) / 512 + 128;
65+
u8 Cr = (112 * (r1 + r2) - 94 * (g1 + g2) - 18 * (b1 + b2)) / 512 + 128;
6666

67-
return Y1 << 24 | Cb << 16 | Y2 << 8 | Cr;
67+
return Y1 << 24 | Cb << 16 | Y2 << 8 | Cr;
6868
}
6969

7070
static const u32 single_RGB8_to_YCbCr(const u8 r, const u8 g, const u8 b)
7171
{
72-
return RGB8_to_YCbCr(r,g,b,r,g,b);
72+
return RGB8_to_YCbCr(r,g,b,r,g,b);
7373
}
7474

7575
//set up the palette for color printing
@@ -263,7 +263,7 @@ static void __console_clear_line(int line, int from, int to )
263263

264264
if( !(con = currentConsole) ) return;
265265

266-
unsigned int bgcolor = con->bg;
266+
unsigned int bgcolor = con->bg;
267267
if (!(currentConsole->flags & CONSOLE_BG_CUSTOM)) {
268268
bgcolor = colorTable[bgcolor];
269269
}
@@ -316,26 +316,26 @@ static void __console_clear_from_cursor(void) {
316316
console_data_s *con;
317317
int cur_row;
318318

319-
if( !(con = currentConsole) ) return;
319+
if( !(con = currentConsole) ) return;
320320
cur_row = con->cursorY;
321321

322-
__console_clear_line( cur_row, con->cursorX, con->con_cols );
323-
324-
while( cur_row++ < con->con_rows )
325-
__console_clear_line( cur_row, 0, con->con_cols );
326-
322+
__console_clear_line( cur_row, con->cursorX, con->con_cols );
323+
324+
while( cur_row++ < con->con_rows )
325+
__console_clear_line( cur_row, 0, con->con_cols );
326+
327327
}
328328
static void __console_clear_to_cursor(void) {
329329
console_data_s *con;
330330
int cur_row;
331331

332-
if( !(con = currentConsole) ) return;
332+
if( !(con = currentConsole) ) return;
333333
cur_row = con->cursorY;
334-
335-
__console_clear_line( cur_row, 0, con->cursorX );
336-
337-
while( cur_row-- )
338-
__console_clear_line( cur_row, 0, con->con_cols );
334+
335+
__console_clear_line( cur_row, 0, con->cursorX );
336+
337+
while( cur_row-- )
338+
__console_clear_line( cur_row, 0, con->con_cols );
339339
}
340340

341341
void __console_init(void *framebuffer,int xstart,int ystart,int xres,int yres,int stride)
@@ -364,7 +364,7 @@ void __console_init(void *framebuffer,int xstart,int ystart,int xres,int yres,in
364364
con->bg = 0;
365365

366366
con->flags = 0;
367-
con->tabSize = 4;
367+
con->tabSize = 4;
368368

369369
currentConsole = con;
370370

@@ -405,7 +405,7 @@ void __console_init_ex(void *conbuffer,int tgt_xstart,int tgt_ystart,int tgt_str
405405
con->bg = 0;
406406

407407
con->flags = 0;
408-
con->tabSize = 4;
408+
con->tabSize = 4;
409409

410410
currentConsole = con;
411411

0 commit comments

Comments
 (0)