After successfully fixing the touch-screen resolution mismatch in the Rpi3I have just received a new Rpi4 and I thought I could give it a try but no such luck.
My aim is to keep the resolution screen at 1920x1080 and the touch screen at 1020x600. I managed that behavior by changing the framebuffer size for Rpi3 but it is a different implementation for Rpi4...
I have tried changing (ewconfig.h):
#define EW_DISPLAY_INTERFACE EW_DISPLAY_INTERFACE_HDMI_0
#define EW_DISPLAY_USE_PREFERED_MODE 0
#define EW_DISPLAY_WIDTH 1020
#define EW_DISPLAY_HEIGHT 600
#define EW_DISPLAY_FRAME_RATE 60
#define EW_DISPLAY_PIXEL_CLOCK 0
#define EW_DISPLAY_DUMP_DISPLAY_MODES 1
#define EW_BORDER_AROUND_GLYPHS 1
#define EW_ROTATION 0
#define EW_PERFORM_FULLSCREEN_UPDATE 1
#define EW_PERFORM_FULLOFFSCREENBUFFER_UPDATE 1
I have managed to change the framebuffer (Hard-coding Width and Height variables) while maintaining the EwScreenSize but the results are not good... not the touchscreen nor the screen work as expected...
Framebuffer size 1020 x 600
EwScreenSize 1920 x 1080
Can someone share some light. to the topic?
I really think that property for touch screen resolution should be added to the Profile class...
I think I am reverting back to Rpi3....