summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authortwinaphex2014-12-12 01:02:40 +0100
committertwinaphex2014-12-12 01:02:40 +0100
commit5bcda4e05eae96c3f2a1448ba3847e4f664317cb (patch)
tree631f63fd965fe7181c159cebb4ed32215044ff88
parentf139b01562f8da1bf27bf51bd531d7979b32f86a (diff)
downloadpicogpsp-5bcda4e05eae96c3f2a1448ba3847e4f664317cb.tar.gz
picogpsp-5bcda4e05eae96c3f2a1448ba3847e4f664317cb.tar.bz2
picogpsp-5bcda4e05eae96c3f2a1448ba3847e4f664317cb.zip
Put proper comments in first
-rw-r--r--video.c84
1 files changed, 72 insertions, 12 deletions
diff --git a/video.c b/video.c
index dbf9fc3..7e4d961 100644
--- a/video.c
+++ b/video.c
@@ -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);
}
}