Solved the problem by deleting all files in the "gfx" subfolder in the project except for the screen driver files ("gdisp_lld_ILI9341.c" and "board_ILI9341.h") and adding just one "gfx_mk.c". But i think i've found a bug in a "gwin_widget.c":
void _gwidgetInit(void)
{
geventListenerInit(&gl);
geventRegisterCallback(&gl, gwidgetEvent, 0);
// geventAttachSource(&gl, ginputGetMouse(GMOUSE_ALL_INSTANCES), GLISTEN_MOUSEMETA|GLISTEN_MOUSEDOWNMOVES);
#if GINPUT_NEED_KEYBOARD || GWIN_NEED_KEYBOARD
geventAttachSource(&gl, ginputGetKeyboard(GKEYBOARD_ALL_INSTANCES), GLISTEN_KEYUP);
#endif
}
I'm not using mouse and GINPUT_NEED_MOUSE is FALSE, but geventAttachSource executes without any conditions with mouse. Just commented this as shown and now all works!