Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nickshl/DevBoy.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'STM32F415APP/Application/Pong.cpp')
-rw-r--r--STM32F415APP/Application/Pong.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/STM32F415APP/Application/Pong.cpp b/STM32F415APP/Application/Pong.cpp
index 3b99d34..3805ec4 100644
--- a/STM32F415APP/Application/Pong.cpp
+++ b/STM32F415APP/Application/Pong.cpp
@@ -63,8 +63,8 @@ Result Pong::Loop()
srand(RtosTick::GetTickCount());
char scr_str[32] = {" 0 : 0 "};
- String score_str(scr_str, (display_drv.GetScreenW() - strlen(scr_str)*String::GetFontW(String::FONT_12x16))/2,
- 16, COLOR_WHITE, String::FONT_12x16);
+ String score_str(scr_str, (display_drv.GetScreenW() - strlen(scr_str) * Font_12x16::GetInstance().GetCharW())/2,
+ 16, COLOR_WHITE, Font_12x16::GetInstance());
score_str.Show(32768);
// Init ticks variable