Fix remaining bugs with the CPC ROM version.
- Fix an extra const for the icons that shouldn't be there for the ROM
version. It is there in the loadable version of the DSC files to
workaround linker script limitations, but in the ROM it results in
trying to write to ROM when the icons are added to the desktop
- Fix a bug (broken code generation by the compiler?) that leads to
vertical lines in windows not stopping where they should and going all
the way down the screen (clipping was applied when it shouldn't,
leading to an overflow)
diff --git a/contiki/apps/processes-dsc.c b/contiki/apps/processes-dsc.c
index 17a98e4..40c1f23 100644
--- a/contiki/apps/processes-dsc.c
+++ b/contiki/apps/processes-dsc.c
@@ -35,9 +35,13 @@
#include "dsc.h"
-static const struct ctk_icon processes_icon;
+static
+#if !BUILDING_FOR_ROM
+const
+#endif
+struct ctk_icon processes_icon;
/*-----------------------------------------------------------------------------------*/
-const DSC(processes_dsc,
+DSC(processes_dsc,
"Process information",
"process.prg",
processes_init,
@@ -68,7 +72,11 @@
#endif /* CTK_CONF_ICON_TEXTMAPS */
#if CTK_CONF_ICONS
-static const struct ctk_icon processes_icon =
+static
+#if !BUILDING_FOR_ROM
+const
+#endif
+struct ctk_icon processes_icon =
{CTK_ICON("Processes", processesicon_bitmap, processesicon_textmap)};
#else
extern struct ctk_icon processes_icon;