From 6457e97e47fa29a23975daf853a3c032ce6650ef Mon Sep 17 00:00:00 2001 From: John Hodge Date: Mon, 18 Feb 2013 23:49:44 +0800 Subject: [PATCH] Usermode/AxWin3 - resources and bugfixes --- Usermode/Applications/axwin3_src/WM/Makefile | 18 ++++++++++++++++++ .../axwin3_src/WM/renderers/richtext.c | 2 +- .../axwin3_src/WM/resources/toolbar_new.png | Bin 0 -> 154 bytes Usermode/Applications/gui_ate_src/main.c | 15 ++++++++++++--- Usermode/Applications/gui_ate_src/strings.c | 12 +++++++++++- 5 files changed, 42 insertions(+), 5 deletions(-) create mode 100755 Usermode/Applications/axwin3_src/WM/resources/toolbar_new.png diff --git a/Usermode/Applications/axwin3_src/WM/Makefile b/Usermode/Applications/axwin3_src/WM/Makefile index 1112ffea..4150e945 100644 --- a/Usermode/Applications/axwin3_src/WM/Makefile +++ b/Usermode/Applications/axwin3_src/WM/Makefile @@ -23,13 +23,31 @@ OBJ += renderers/widget/textinput.o OBJ += renderers/widget/spacer.o OBJ += renderers/widget/subwin.o +PNGIMAGES := toolbar_new.png + LDFLAGS += -limage_sif -luri -lnet -lunicode +IMG2SIF = ../../../../Tools/img2sif + -include ../../Makefile.tpl +.PHONY: install_resources + +install: install_resources + #all: resources/LogoSmall.sif.res.h %.res.h: % Makefile echo "#define RESOURCE_$(notdir $<) \\"| sed -e 's/\./_/g' > $@ base64 $< | sed -e 's/.*/"&"\\/' >> $@ echo "" >> $@ + +$(IMG2SIF): + $(MAKE) -C $(dir $(IMG2SIF)) img2sif + +install_%.sif: resources/%.png + @echo img2sif resources/$*.png + @$(IMG2SIF) resources/$*.png resources/.$*.sif + @$(xCP) resources/.$*.sif $(DISTROOT)/$(DIR)/$*.sif + +install_resources: $(IMG2SIF) $(addprefix install_,$(PNGIMAGES:%.png=%.sif)) diff --git a/Usermode/Applications/axwin3_src/WM/renderers/richtext.c b/Usermode/Applications/axwin3_src/WM/renderers/richtext.c index a72cac3f..8f69c9ca 100644 --- a/Usermode/Applications/axwin3_src/WM/renderers/richtext.c +++ b/Usermode/Applications/axwin3_src/WM/renderers/richtext.c @@ -87,7 +87,7 @@ tWindow *Renderer_RichText_Create(int Flags) void Renderer_RichText_Destroy(tWindow *Window) { - tRichText_Window *info = ret->RendererInfo; + tRichText_Window *info = Window->RendererInfo; // TODO: Is locking needed? WM_Destroy should have taken us off the render tree while( info->FirstLine ) diff --git a/Usermode/Applications/axwin3_src/WM/resources/toolbar_new.png b/Usermode/Applications/axwin3_src/WM/resources/toolbar_new.png new file mode 100755 index 0000000000000000000000000000000000000000..86443447bea2a32b37aaffc376c9deaae3316998 GIT binary patch literal 154 zcmeAS@N?(olHy`uVBq!ia0vp^0wB!61|;P_|4#%`iJmTwAr_~T6C^SYbeyrQ|97E2 zhKrZ?tpw++vVVUT{=aeH=jZl+&QEV#_-Y{dI)s@yx{X_$@4w3J1|XIERgHV&w#Cve zo45-a1DRJOFmN+7Gavr{|G%h&q@;X8_p*ch3