fix: memory and other improvements

This commit is contained in:
2026-03-06 22:09:11 +01:00
parent d682a49c77
commit 56fea336d6
14 changed files with 445 additions and 107 deletions
+1 -1
View File
@@ -82,7 +82,7 @@ void gui::desktop_init(DesktopState* ds) {
ds->settings.ui_scale = 1;
// Try to load default wallpaper
wallpaper_load(&ds->settings, "0:/home/stephen-walker-DaC8D3USffk-unsplash.jpg",
wallpaper_load(&ds->settings, "0:/home/kristaps-ungurs-llezNN2OGEY-unsplash.jpg",
ds->screen_w, ds->screen_h);
montauk::win_setscale(1);
+7 -2
View File
@@ -15,6 +15,7 @@ endif
# ---- Paths ----
LIBC_LIB := ../../lib/libc
PROG_INC := ../../include
LINK_LD := ../../link.ld
BINDIR := ../../bin
@@ -59,6 +60,10 @@ LDFLAGS := \
-z max-page-size=0x1000 \
-T $(LINK_LD)
# ---- Libraries ----
LIBS := $(LIBC_LIB)/liblibc.a
# ---- Source files ----
SRCS := main.cpp stb_truetype_impl.cpp
@@ -72,9 +77,9 @@ TARGET := $(BINDIR)/os/fontpreview.elf
all: $(TARGET)
$(TARGET): $(OBJS) $(LINK_LD) Makefile
$(TARGET): $(OBJS) $(LIBS) $(LINK_LD) Makefile
mkdir -p $(BINDIR)/os
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) -o $@
$(CXX) $(CXXFLAGS) $(LDFLAGS) $(OBJS) $(LIBS) -o $@
$(OBJDIR)/%.o: %.cpp Makefile
mkdir -p $(OBJDIR)
+1 -2
View File
@@ -1,7 +1,6 @@
/*
* main.cpp
* MontaukOS Image Viewer - standalone Window Server process
* Displays images with zoom, pan, fit-to-window, and 1:1 modes
* MontaukOS Image Viewer
* Copyright (c) 2026 Daniel Hammer
*/