diff options
author | twinaphex | 2014-12-12 01:02:40 +0100 |
---|---|---|
committer | twinaphex | 2014-12-12 01:02:40 +0100 |
commit | 5bcda4e05eae96c3f2a1448ba3847e4f664317cb (patch) | |
tree | 631f63fd965fe7181c159cebb4ed32215044ff88 /video.c | |
parent | f139b01562f8da1bf27bf51bd531d7979b32f86a (diff) | |
download | picogpsp-5bcda4e05eae96c3f2a1448ba3847e4f664317cb.tar.gz picogpsp-5bcda4e05eae96c3f2a1448ba3847e4f664317cb.tar.bz2 picogpsp-5bcda4e05eae96c3f2a1448ba3847e4f664317cb.zip |
Put proper comments in first
Diffstat (limited to 'video.c')
-rw-r--r-- | video.c | 84 |
1 files changed, 72 insertions, 12 deletions
@@ -1327,13 +1327,23 @@ static void render_scanline_text_base_color16(u32 layer, if(bg_control & 0x80) { + /* color depth: 8bpp + * combine: base + * alpha :color16 + */ + /* Render a single scanline of text tiles */ - tile_render(8bpp, base, color16); + tile_render(8bpp, base, color16); } else { + /* color depth: 4bpp + * combine: base + * alpha :color16 + */ + /* Render a single scanline of text tiles */ - tile_render(4bpp, base, color16); + tile_render(4bpp, base, color16); } } @@ -1396,13 +1406,23 @@ static void render_scanline_text_transparent_color16(u32 layer, if(bg_control & 0x80) { + /* color depth: 8bpp + * combine: transparent + * alpha :color16 + */ + /* Render a single scanline of text tiles */ - tile_render(8bpp, transparent, color16); + tile_render(8bpp, transparent, color16); } else { + /* color depth: 4bpp + * combine: transparent + * alpha :color16 + */ + /* Render a single scanline of text tiles */ - tile_render(4bpp, transparent, color16); + tile_render(4bpp, transparent, color16); } } @@ -1465,13 +1485,23 @@ static void render_scanline_text_base_color32(u32 layer, if(bg_control & 0x80) { + /* color depth: 8bpp + * combine: base + * alpha :color32 + */ + /* Render a single scanline of text tiles */ - tile_render(8bpp, base, color32); + tile_render(8bpp, base, color32); } else { + /* color depth: 4bpp + * combine: base + * alpha :color32 + */ + /* Render a single scanline of text tiles */ - tile_render(4bpp, base, color32); + tile_render(4bpp, base, color32); } } @@ -1534,13 +1564,23 @@ static void render_scanline_text_transparent_color32(u32 layer, if(bg_control & 0x80) { + /* color depth: 8bpp + * combine: transparent + * alpha :color32 + */ + /* Render a single scanline of text tiles */ - tile_render(8bpp, transparent, color32); + tile_render(8bpp, transparent, color32); } else { + /* color depth: 4bpp + * combine: transparent + * alpha :color32 + */ + /* Render a single scanline of text tiles */ - tile_render(4bpp, transparent, color32); + tile_render(4bpp, transparent, color32); } } @@ -1603,13 +1643,23 @@ static void render_scanline_text_base_alpha(u32 layer, if(bg_control & 0x80) { + /* color depth: 8bpp + * combine: base + * alpha : alpha + */ + /* Render a single scanline of text tiles */ - tile_render(8bpp, base, alpha); + tile_render(8bpp, base, alpha); } else { + /* color depth: 4bpp + * combine: base + * alpha : alpha + */ + /* Render a single scanline of text tiles */ - tile_render(4bpp, base, alpha); + tile_render(4bpp, base, alpha); } } @@ -1672,13 +1722,23 @@ static void render_scanline_text_transparent_alpha(u32 layer, if(bg_control & 0x80) { + /* color depth: 8bpp + * combine: transparent + * alpha : alpha + */ + /* Render a single scanline of text tiles */ - tile_render(8bpp, transparent, alpha); + tile_render(8bpp, transparent, alpha); } else { + /* color depth: 4bpp + * combine: transparent + * alpha : alpha + */ + /* Render a single scanline of text tiles */ - tile_render(4bpp, transparent, alpha); + tile_render(4bpp, transparent, alpha); } } |