mirror of
https://github.com/stasenso/rp_pico_display_engine.git
synced 2026-06-26 21:32:41 +03:00
Removed redundant calls to get_char_width
This commit is contained in:
+50
-7
File diff suppressed because one or more lines are too long
+2
-1
@@ -8,5 +8,6 @@ extern const uint16_t font_height;
|
||||
extern const uint8_t font_data[];
|
||||
|
||||
void draw_string(uint16_t x, uint16_t y, const wchar_t *str);
|
||||
void draw_char(uint16_t x, uint16_t y, wchar_t c);
|
||||
void draw_char(uint16_t x, uint16_t y,uint8_t wdh, wchar_t c);
|
||||
uint8_t get_char_width(wchar_t c);
|
||||
#endif // FONT_DATA_H
|
||||
|
||||
@@ -27,7 +27,8 @@ int main() {
|
||||
|
||||
fillBufer(frame_buffer,reverse(0x4A69));//
|
||||
generate_sine_wave_points(num_points, 50, freq, 0, HEIGHT / 2,x);
|
||||
draw_string(0,50,L"Проверка кириллицы");
|
||||
draw_string(20,110,L"Кириллица работает!!!"); //
|
||||
draw_string(50,130,L"Does Latin work?"); //Does Latin work?
|
||||
multicore_fifo_push_blocking(0); //Экран 0 нарисован
|
||||
x+=0.03;
|
||||
if (minmax)
|
||||
|
||||
Reference in New Issue
Block a user