Hello,
I call WM_EnableMemdev when creating a new window where I display some BMPs from an SD card using GUI_BMP_DrawEx().
On emWin manual it's stated that the Memdev automatically created by the WM "knows" what's the lower color depth needed and thus creates a Memory Device accordingly.
Thing is, when I display a 24bits color depth BMP the Memory Device is the same size as when I display a 8bit color depth BMP. I guess I'm missing something, how can I "help" emWin understand what's the correct color depth to use in order to not waste RAM?
Also, does the WM automatically deletes the Memdev and frees the memory that it was using when the printing to the screen is finished?
Thanks! :)
I call WM_EnableMemdev when creating a new window where I display some BMPs from an SD card using GUI_BMP_DrawEx().
On emWin manual it's stated that the Memdev automatically created by the WM "knows" what's the lower color depth needed and thus creates a Memory Device accordingly.
Thing is, when I display a 24bits color depth BMP the Memory Device is the same size as when I display a 8bit color depth BMP. I guess I'm missing something, how can I "help" emWin understand what's the correct color depth to use in order to not waste RAM?
Also, does the WM automatically deletes the Memdev and frees the memory that it was using when the printing to the screen is finished?
Thanks! :)