@@ -203,56 +203,56 @@ namespace menu {
203203 // draw the entry text with a small font above the token if we have any
204204 if (klib::string::strlen (entries[current].str )) {
205205 // draw the current token using the large font
206- screen<FrameBuffer> ::small_text::template draw<FrameBuffer>(
206+ screen_base ::small_text::template draw<FrameBuffer>(
207207 frame_buffer,
208208 " profile" ,
209209 klib::vector2i{3 , 3 } - offset.cast <int32_t >(),
210210 klib::graphics::white
211211 );
212212
213213 // draw the current token using the large font
214- screen<FrameBuffer> ::large_text::template draw<FrameBuffer>(
214+ screen_base ::large_text::template draw<FrameBuffer>(
215215 frame_buffer,
216216 entries[current].str ,
217- klib::vector2i{6 , 9 + screen<FrameBuffer>::small_font ::height} - offset.cast <int32_t >(),
217+ klib::vector2i{6 , 9 + screen_base::small_text::font ::height} - offset.cast <int32_t >(),
218218 klib::graphics::white
219219 );
220220 }
221221
222222 // draw the current token using the large font
223- screen<FrameBuffer> ::large_text::template draw<FrameBuffer>(
223+ screen_base ::large_text::template draw<FrameBuffer>(
224224 frame_buffer,
225225 current_token_buf,
226226 klib::vector2i{60 , 60 } - offset.cast <int32_t >(),
227227 klib::graphics::white
228228 );
229229
230230 // draw the next token using the small font
231- screen<FrameBuffer> ::small_text::template draw<FrameBuffer>(
231+ screen_base ::small_text::template draw<FrameBuffer>(
232232 frame_buffer,
233233 next_token_buf,
234234 klib::vector2i{108 , 78 } - offset.cast <int32_t >(),
235235 klib::graphics::white
236236 );
237237
238238 // draw the epoch time using the small font
239- screen<FrameBuffer> ::small_text::template draw<FrameBuffer>(
239+ screen_base ::small_text::template draw<FrameBuffer>(
240240 frame_buffer,
241241 epoch_buf,
242242 klib::vector2i{
243243 (240 - 1 ) - static_cast <int32_t >(
244- klib::string::strlen (epoch_buf) * screen<FrameBuffer>::small_font ::width
244+ klib::string::strlen (epoch_buf) * screen_base::small_text::font ::width
245245 ),
246- (135 - 1 - screen<FrameBuffer>::small_font ::height)
246+ (135 - 1 - screen_base::small_text::font ::height)
247247 } - offset.cast <int32_t >(),
248248 klib::graphics::white
249249 );
250250
251251 // draw using the large font
252- screen<FrameBuffer> ::small_text::template draw<FrameBuffer>(
252+ screen_base ::small_text::template draw<FrameBuffer>(
253253 frame_buffer,
254254 delta_buf,
255- klib::vector2i{1 , (135 - 1 - screen<FrameBuffer>::small_font ::height)} - offset.cast <int32_t >(),
255+ klib::vector2i{1 , (135 - 1 - screen_base::small_text::font ::height)} - offset.cast <int32_t >(),
256256 klib::graphics::white
257257 );
258258
@@ -271,11 +271,11 @@ namespace menu {
271271 }
272272
273273 // draw the time left in seconds in the circle
274- screen<FrameBuffer> ::small_text::template draw<FrameBuffer>(
274+ screen_base ::small_text::template draw<FrameBuffer>(
275275 frame_buffer, seconds_left_buf,
276276 klib::vector2i{
277- (204 + 1 ) - static_cast <int32_t >((klib::string::strlen (seconds_left_buf) * screen<FrameBuffer>::small_font ::width) / 2 ),
278- (68 + 1 ) - (screen<FrameBuffer>::small_font ::height / 2 )
277+ (204 + 1 ) - static_cast <int32_t >((klib::string::strlen (seconds_left_buf) * screen_base::small_text::font ::width) / 2 ),
278+ (68 + 1 ) - (screen_base::small_text::font ::height / 2 )
279279 } - offset.cast <int32_t >(),
280280 klib::graphics::white
281281 );
0 commit comments