mirror of
https://github.com/Next-Flip/Momentum-Firmware.git
synced 2026-05-19 04:44:47 -07:00
@@ -5,7 +5,7 @@
|
||||
#define TEXT_BOX_HEIGHT 13
|
||||
#define TEXT_BOX_MARGIN 4
|
||||
|
||||
void ui_control_text_box_render(Canvas* const canvas, int8_t y, char* text, bool is_selected) {
|
||||
void ui_control_text_box_render(Canvas* const canvas, int16_t y, const char* text, bool is_selected) {
|
||||
if(y < -TEXT_BOX_HEIGHT) {
|
||||
return;
|
||||
}
|
||||
@@ -44,7 +44,7 @@ void ui_control_select_render(
|
||||
int16_t x,
|
||||
int16_t y,
|
||||
uint8_t width,
|
||||
char* text,
|
||||
const char* text,
|
||||
bool is_selected) {
|
||||
if(y < -TEXT_BOX_HEIGHT) {
|
||||
return;
|
||||
@@ -99,7 +99,7 @@ void ui_control_button_render(
|
||||
int16_t y,
|
||||
uint8_t width,
|
||||
uint8_t height,
|
||||
char* text,
|
||||
const char* text,
|
||||
bool is_selected) {
|
||||
if(y < -height) {
|
||||
return;
|
||||
|
||||
@@ -3,19 +3,19 @@
|
||||
#include <inttypes.h>
|
||||
#include <gui/gui.h>
|
||||
|
||||
void ui_control_text_box_render(Canvas* const canvas, int8_t y, char* text, bool is_selected);
|
||||
void ui_control_text_box_render(Canvas* const canvas, int16_t y, const char* text, bool is_selected);
|
||||
void ui_control_button_render(
|
||||
Canvas* const canvas,
|
||||
int16_t x,
|
||||
int16_t y,
|
||||
uint8_t width,
|
||||
uint8_t height,
|
||||
char* text,
|
||||
const char* text,
|
||||
bool is_selected);
|
||||
void ui_control_select_render(
|
||||
Canvas* const canvas,
|
||||
int16_t x,
|
||||
int16_t y,
|
||||
uint8_t width,
|
||||
char* text,
|
||||
const char* text,
|
||||
bool is_selected);
|
||||
|
||||
Reference in New Issue
Block a user