Commit Graph
7 Commits
Author SHA1 Message Date
Zulkarnine Mahmud 2960aa54e2 Remove duplicate code 2017-07-16 21:59:26 +09:00
Zulkarnine Mahmud a6b146dfdd Fix assumption for foreground bit offset 2017-07-15 17:44:18 +09:00
Zulkarnine Mahmud 6a75e3c169 Remove unnecessary const 2017-06-29 09:52:41 +09:00
Zulkarnine Mahmud 26b7ac3b18 Add helper functions for text color calculation 2017-06-29 09:47:52 +09:00
Zulkarnine Mahmud 271fb8ff5e Fix a problem when bg_color == fg_color
Invert the intensity bit if the background_color == foreground_color
2017-06-22 11:06:17 +09:00
Zulkarnine Mahmud 365df11427 Add background_mask instead of using magic number 2017-06-21 09:17:51 +09:00
Zulkarnine Mahmud 649aa29552 Fix background color in ColoredPrintf
Re-use existing background color for Widows' console window.
This fixes a problem where the background color for ColoredPrintf would be BLACK even if the user's console is using a different BG color.
2017-06-20 15:40:53 +09:00