Nice library. Just learning to use it.
I have stuck to one error and cannot find solutions from the documentations.
When I try use/create font in my Screen constructor function:
MAUI::Font* font = new MAUI::Font(RES_FONT);
The program crashes when I run it: "Malloc failed. You most likely run out of heap memory. "
I can also see that when compiling I get a warning: "Runtime Warning: data section is too small for the stack, heap & BSS
(changed to -datasize=132468)". And I do not get this warning when compiling the tutorial project with font in it. So obviously something wrong in my project.
What I did is that I copied the resources.lst from one tutorial project and pasted it into my project. Then I added
#include
#include "MAHeaders.h"
At the beginning of the file.
Did I add font resources correctly by just copying and pasting the resource from another one? Or I need to do something else as well?
So how to add a font support to a project?