Skip to content

Commit

Permalink
Minor comment tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
NiLuJe committed Jan 6, 2025
1 parent c445691 commit 97c5168
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions fbink.c
Original file line number Diff line number Diff line change
Expand Up @@ -2598,7 +2598,7 @@ static int
// as it's used to handle a few nightmode shenanigans...
if (fbink_cfg->is_nightmode) {
// FIXME: On Bellatrix4, might not be compatible w/ CFA (i.e., needs MTK_EPDC_FLAG_SKIP_CFA),
// so you shuld *really* prefer the grayscale flag approach...
// so you should *really* prefer the grayscale flag approach...
update.flags |= EPDC_FLAG_ENABLE_INVERSION;
}

Expand Down Expand Up @@ -2645,9 +2645,9 @@ static int
if (deviceQuirks.isKindleBellatrix4) {
// Should work properly on Bellatrix4, where we also have proper Y1 support
if (waveform_mode == MTK_WAVEFORM_MODE_A2 || waveform_mode == MTK_WAVEFORM_MODE_DU) {
update.flags |= EPDC_FLAG_USE_DITHERING_Y1; // maps to MDP_DITHER_ALGO_Y8_Y1_S
update.flags |= EPDC_FLAG_USE_DITHERING_Y1; // Maps to MDP_DITHER_ALGO_Y8_Y1_S
} else {
update.flags |= MTK_EPDC_FLAG_USE_DITHERING_Y4; // maps to MDP_DITHER_ALGO_Y8_Y4_S
update.flags |= MTK_EPDC_FLAG_USE_DITHERING_Y4; // Maps to MDP_DITHER_ALGO_Y8_Y4_S
}
} else {
// NOTE: Not much variety left, this is the only flag currently honored.
Expand Down
2 changes: 1 addition & 1 deletion fbink.h
Original file line number Diff line number Diff line change
Expand Up @@ -1514,7 +1514,7 @@ FBINK_API void fbink_get_fb_info(struct fb_var_screeninfo* var_info, struct fb_f
// Generally set to GRAYSCALE_8BIT (1),
// setting it to GRAYSCALE_8BIT_INVERTED (2)
// will automagically enforce HW inversion via EPDC_FLAG_ENABLE_INVERSION (or similar).
// On Kindle MTK+Bellatrix4, GRAYSCALE_COLOR (0) and GRAYSCALE_COLOR_NIGHTMODE (3) are also supported.
// On Kindle MTK+Bellatrix4+CFA, GRAYSCALE_COLOR (0) and GRAYSCALE_COLOR_NIGHTMODE (3) are also supported.
// Untouched if set to KEEP_CURRENT_GRAYSCALE
// If set to TOGGLE_GRAYSCALE, will toggle between INVERTED & not @ 8bpp
// fbink_cfg: Pointer to an FBInkConfig struct.
Expand Down

0 comments on commit 97c5168

Please sign in to comment.