mirror of
https://github.com/He4eT/dice.git
synced 2026-05-05 01:47:25 +00:00
c: text height as a const
This commit is contained in:
parent
312288facd
commit
d43b063de8
1 changed files with 1 additions and 1 deletions
|
|
@ -25,7 +25,7 @@ static void prv_window_load(Window *window) {
|
|||
Layer *window_layer = window_get_root_layer(window);
|
||||
GRect bounds = layer_get_bounds(window_layer);
|
||||
|
||||
int text_h = 32 + 10;
|
||||
const int text_h = 32 + 10;
|
||||
GRect text_bounds = GRect(0, (bounds.size.h - text_h) / 2, bounds.size.w, text_h);
|
||||
GFont text_font = fonts_get_system_font(FONT_KEY_LECO_32_BOLD_NUMBERS);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue