Skip to content

Commit 5a96eb2

Browse files
committed
Tweaks
1 parent 428c4e7 commit 5a96eb2

File tree

3 files changed

+7
-5
lines changed

3 files changed

+7
-5
lines changed

libraries/framebuf/bmfont/bmfont.c

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1100,20 +1100,22 @@ result_t bmfont_draw(bmfont_t *bmfont,
11001100
{
11011101
case 1: drawfn = (bgalpha < 255) ? bmfont_drawchar_p4_1w_t : bmfont_drawchar_p4_1w_o; break;
11021102
case 2: drawfn = (bgalpha < 255) ? bmfont_drawchar_p4_2w_t : bmfont_drawchar_p4_2w_o; break;
1103-
default: assert(0); return result_BAD_ARG;
1103+
default: assert(0); return result_NOT_SUPPORTED;
11041104
}
11051105
break;
1106+
11061107
case pixelfmt_bgra8888:
11071108
case pixelfmt_bgrx8888:
11081109
switch (bmfont->glyphrowbytes)
11091110
{
11101111
case 1: drawfn = (bgalpha < 255) ? bmfont_drawchar_any8888_1w_t : bmfont_drawchar_any8888_1w_o; break;
11111112
case 2: drawfn = (bgalpha < 255) ? bmfont_drawchar_any8888_2w_t : bmfont_drawchar_any8888_2w_o; break;
1112-
default: assert(0); return result_BAD_ARG;
1113+
default: assert(0); return result_NOT_SUPPORTED;
11131114
}
11141115
break;
1116+
11151117
default:
1116-
assert(0); return result_BAD_ARG;
1118+
assert(0); return result_NOT_SUPPORTED;
11171119
}
11181120

11191121
if (screen_get_clip(scr, &scrclip))

libraries/framebuf/screen/screen-draw.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,7 +210,7 @@ void screen_draw_line_wu_fix8(screen_t *scr,
210210
{
211211
box_t clip_box_f8;
212212
fix8_t dx_f8, dy_f8;
213-
int steep_b; // bool
213+
int steep_b; /* a bool */
214214
fix16_t grad_f16;
215215
int xend_i;
216216
fix8_t yend_f8;

libraries/geom/packer/impl.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ struct packer
3232
box_t placed_area; /* last packer_place_by result */
3333

3434
packer_sortdir_t order; /* order to which we have sorted */
35-
int sorted; // bool
35+
int sorted; /* a bool */
3636

3737
box_t consumed_area; /* total consumed area */
3838
};

0 commit comments

Comments
 (0)