fixes more or less

This commit is contained in:
Patrick 2025-10-08 18:22:43 +02:00
commit 74c5f7a004
7 changed files with 67 additions and 63 deletions

View file

@ -25,7 +25,7 @@ PGPL_GuiWidget *create_main_view(struct AppData *app) {
layout->parent.ignore_margin = true;
layout->parent.ignore_border = true;
slider = pgpl_gui_slider_widget_create(16, false, false, 0.0, slide_callback);
slider = pgpl_gui_slider_widget_create(false, false, 0.0, slide_callback);
slider->parent.border = true;
slider->parent.background = true;
@ -41,7 +41,7 @@ PGPL_GuiWidget *create_main_view(struct AppData *app) {
return (PGPL_GuiWidget *)layout;
}
int32_t main(void) {
int main(void) {
PGPL_Gui *gui;
PGPL_GuiTheme theme;
PGPL_Font *font;
@ -55,7 +55,7 @@ int32_t main(void) {
font = pgpl_font_create_from_file("../roboto.ttf", 256);
pgpl_gui_theme_configure(&theme, pgpl_color_create(255, 255, 255, 255), 64,
pgpl_gui_theme_configure(&theme, pgpl_color_create(0, 128, 255, 255), 32,
font);
gui = pgpl_gui_create("PGPL Test", 480, 320, 0, 0, &theme, &app);