XHCI big clean up, #define necessary bits for readability, change .clang-format options
This commit is contained in:
@@ -172,7 +172,9 @@ static void sgr (struct flanterm_context* ctx) {
|
||||
continue;
|
||||
}
|
||||
|
||||
else if (ctx->esc_values[i] == 2 || ctx->esc_values[i] == 3 || ctx->esc_values[i] == 4 ||
|
||||
else if (ctx->esc_values[i] == 2 ||
|
||||
ctx->esc_values[i] == 3 ||
|
||||
ctx->esc_values[i] == 4 ||
|
||||
ctx->esc_values[i] == 8) {
|
||||
continue;
|
||||
}
|
||||
@@ -986,7 +988,8 @@ static void control_sequence_parse (struct flanterm_context* ctx, uint8_t c) {
|
||||
if (ctx->esc_values_i > 1) {
|
||||
ctx->scroll_bottom_margin = ctx->esc_values[1];
|
||||
}
|
||||
if (ctx->scroll_top_margin >= ctx->rows || ctx->scroll_bottom_margin > ctx->rows ||
|
||||
if (ctx->scroll_top_margin >= ctx->rows ||
|
||||
ctx->scroll_bottom_margin > ctx->rows ||
|
||||
ctx->scroll_top_margin >= (ctx->scroll_bottom_margin - 1)) {
|
||||
ctx->scroll_top_margin = 0;
|
||||
ctx->scroll_bottom_margin = ctx->rows;
|
||||
|
||||
Reference in New Issue
Block a user