From 4bfce3b6e2ea095ea3d9f5d2d1018cc0a1e5ce09 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20K=C3=BChling?= Date: Sat, 18 Sep 2010 20:47:21 +0200 Subject: Major overhaul and cleanup. Support for .ubi image file installations. Only compile&install a minimum host Gforth for bootstrapping the target Gforth, removing strange emacs-dependencies that cropped up earlier. Image file can now be built on the nanonote using 'gforth-update-image' command. Also, Gforth is now run through a wrapper that calls 'gforth-update-image' automatically, if necessary. Also first attempts at supporting libcc C-interface libraries pre-compiled on the host. Tested to compile on amd64 and i386. --- dgclock/patches/002-fix-bpp-on-nn.patch | 47 +++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 dgclock/patches/002-fix-bpp-on-nn.patch (limited to 'dgclock/patches/002-fix-bpp-on-nn.patch') diff --git a/dgclock/patches/002-fix-bpp-on-nn.patch b/dgclock/patches/002-fix-bpp-on-nn.patch new file mode 100644 index 0000000..5c3ff70 --- /dev/null +++ b/dgclock/patches/002-fix-bpp-on-nn.patch @@ -0,0 +1,47 @@ +diff -ruN dgclock-091222/src/main.c dgclock-091222.mod/src/main.c +--- dgclock-091222/src/main.c 2010-02-10 11:51:51.000000000 +0100 ++++ dgclock-091222.mod/src/main.c 2010-02-10 15:27:40.000000000 +0100 +@@ -7,7 +7,7 @@ + #include "text.h" + #include "settime.h" + +-SDL_Surface *gSurfaceMain = NULL; ++SDL_Surface *gSurfaceMain, *gRealScreen = NULL; + TTF_Font *gTTFFont = NULL; + TTF_Font *gTTFSmall = NULL; + +@@ -46,8 +46,9 @@ + return -1; + } + +- gSurfaceMain = SDL_SetVideoMode(320,240,16,0); +- ++ gSurfaceMain = SDL_CreateRGBSurface(SDL_SWSURFACE, 320, 240, 16, 0, 0, 0, 0); ++ gRealScreen = SDL_SetVideoMode(320,240,32,0); ++ + if (!gSurfaceMain) + return -1; + +@@ -560,7 +561,8 @@ + SDL_Surface *pSurfaceText = NULL; + + +- SDL_Flip(gSurfaceMain); ++ SDL_BlitSurface(gSurfaceMain,NULL,gRealScreen,NULL); ++ SDL_Flip(gRealScreen); + + i = 0; + quit_flag = 0; +@@ -612,8 +614,10 @@ + app_make_time(&lctm); + } + +- SDL_Flip(gSurfaceMain); +- SDL_Flip(gSurfaceMain); // seems double buffer ++ SDL_BlitSurface(gSurfaceMain,NULL,gRealScreen,NULL); ++ SDL_Flip(gRealScreen); ++ SDL_Flip(gRealScreen); ++ + update_flag = 0; + } + -- cgit v1.2.3