View Single Post
Old 11-05-2020, 04:14 PM   #3
GerReader
Connoisseur
GerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of itGerReader has read War And Peace ... all of it
 
Posts: 52
Karma: 66200
Join Date: Oct 2020
Location: Germany, Rhein-Main
Device: PocketBook Touch HD 3
Quote:
Originally Posted by rkomar View Post
I think you have to have a valid icon for each menu item (the second member of the iconfigedit struct). Look around for images.c files that contain ibitmap structures of icons to use in your project. The size of the icon determines the physical layout of the displayed configuration editor.
Thanks for the hint, but unfortunately I had no success trying this. The app still crashes when trying to open the ConfigEditor.

I changed myconfigedit to this:

Code:
iconfigedit myconfigedit[] = {
{ CFG_CHOICE, &icon_menu, "Difficulty", "Game difficulty", "difficulty", "Easy", difficulties, NULL, NULL},
{ 0, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL }
};
icon_menu is a 96x96 bitmap which I already have included for a menu icon in my test app, so this bitmap is definitely available, I include my bitmaps like this in a .h file:

Code:
extern ibitmap icon_home, icon_home_tap, icon_menu, icon_menu_tap, menu_settings;
and I compile the bitmaps with pbres into a separate icons.c file which I compile and link to the app.

Furthermore, I found a relatively recent project at GitHub, where an iconfigedit array structure is also built without an icon for the entries:

https://github.com/Programmist11180/...c/settings.cpp

so I don't think that the missing icon is the problem here
GerReader is offline   Reply With Quote