mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-23 04:26:50 +03:00
Framebuffer: Squash fallthrough warnings in internal font handling.
This commit is contained in:
parent
29e36cdf1a
commit
89baae16b4
@ -270,6 +270,7 @@ fb_get_glyph(uint32_t ucs4, enum fb_font_style style, int scale)
|
||||
break;
|
||||
}
|
||||
}
|
||||
/* Fall through. */
|
||||
case FB_BOLD:
|
||||
section = fb_bold_section_table[ucs4 / 256];
|
||||
if (section != 0 || ucs4 / 256 == 0) {
|
||||
@ -280,6 +281,7 @@ fb_get_glyph(uint32_t ucs4, enum fb_font_style style, int scale)
|
||||
break;
|
||||
}
|
||||
}
|
||||
/* Fall through. */
|
||||
case FB_ITALIC:
|
||||
section = fb_italic_section_table[ucs4 / 256];
|
||||
if (section != 0 || ucs4 / 256 == 0) {
|
||||
@ -290,6 +292,7 @@ fb_get_glyph(uint32_t ucs4, enum fb_font_style style, int scale)
|
||||
break;
|
||||
}
|
||||
}
|
||||
/* Fall through. */
|
||||
case FB_REGULAR:
|
||||
section = fb_regular_section_table[ucs4 / 256];
|
||||
if (section != 0 || ucs4 / 256 == 0) {
|
||||
@ -300,6 +303,7 @@ fb_get_glyph(uint32_t ucs4, enum fb_font_style style, int scale)
|
||||
break;
|
||||
}
|
||||
}
|
||||
/* Fall through. */
|
||||
default:
|
||||
glyph_data = get_codepoint(ucs4, style & FB_ITALIC);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user