console/font: draw bg only if needed

If the background color is identical to the background-color of the glyph
to be drawn, then we can skip drawing the background. This increases
performance a _lot_.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
This commit is contained in:
David Herrmann committed 2012-07-15 12:55:50 +02:00
1 parent a6bca387da
commit 2cd8cdbea4
4 files changed
+54 -16

No files matched your search

+2
View File
@@ -64,6 +64,8 @@ int kmscon_console_set_margins(struct kmscon_console *con,
void kmscon_console_set_max_sb(struct kmscon_console *con, unsigned int max);
void kmscon_console_clear_sb(struct kmscon_console *con);
void kmscon_console_set_bg(struct kmscon_console *con, uint8_t r, uint8_t g,
uint8_t b);
void kmscon_console_reset(struct kmscon_console *con);
void kmscon_console_set_flags(struct kmscon_console *con, unsigned int flags);
void kmscon_console_reset_flags(struct kmscon_console *con, unsigned int flags);