[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[freetype2] ksvsk_test c0bbbfd: Modified LCD_V rendering
From: |
Kushal K S V S |
Subject: |
[freetype2] ksvsk_test c0bbbfd: Modified LCD_V rendering |
Date: |
Thu, 15 Jun 2017 05:37:17 -0400 (EDT) |
branch: ksvsk_test
commit c0bbbfda618db2f02c836eb25d3cfa0d64b16ec6
Author: Kushal K S V S <address@hidden>
Commit: Kushal K S V S <address@hidden>
Modified LCD_V rendering
---
bitmap.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/bitmap.c b/bitmap.c
index fc59409..4217c3c 100644
--- a/bitmap.c
+++ b/bitmap.c
@@ -160,13 +160,13 @@ void Write_Bitmap_Data_LCD_V_BGR (FT_Bitmap * bitmap) {
int i,j,k,step;
char value;
- step = bitmap->rows - 1;
+ step = 0;
- while ( step > 0 ){
+ while ( step < bitmap->rows ){
for (i = 0; i < bitmap->width; i++)
{
- for (j = step - 2; j <= step; ++j)
+ for (j = step ; j < step + 3; ++j)
{
value = 0xff - bitmap->buffer[(j * bitmap->pitch) + i];
fwrite (&value, 1, 1,fp);
@@ -177,7 +177,7 @@ void Write_Bitmap_Data_LCD_V_BGR (FT_Bitmap * bitmap) {
value = 0xff;
fwrite (&value, 1, 1,fp);
}
- step = step - 3;
+ step = step + 3; // Jumping 3 rows up
}
fclose(fp);
@@ -189,13 +189,13 @@ void Write_Bitmap_Data_LCD_V_RGB (FT_Bitmap * bitmap) {
int i,j,k,step;
char value;
- step = bitmap->rows - 1;
+ step = 0;
- while ( step > 0 ){
+ while ( step < bitmap->rows ){
for (i = 0; i < bitmap->width; i++)
{
- for (j = step; j > step - 3; --j)
+ for (j = step + 2 ; j >= step; --j)
{
value = 0xff - bitmap->buffer[(j * bitmap->pitch) + i];
fwrite (&value, 1, 1,fp);
@@ -206,7 +206,7 @@ void Write_Bitmap_Data_LCD_V_RGB (FT_Bitmap * bitmap) {
value = 0xff;
fwrite (&value, 1, 1,fp);
}
- step = step - 3;
+ step = step + 3; // Jumping 3 rows up
}
fclose(fp);
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [freetype2] ksvsk_test c0bbbfd: Modified LCD_V rendering,
Kushal K S V S <=