I looked in my notes and there is not a fixed location of where the display settings are, but they are almost unique. The display setup is done in two parts, the boot loader and the actual firmware. The boot loader might use a different set of settings than the firmware, but when you search for the possible settings you either find it once or twice. Only the ones in the address region of 0x04xxxx actually matter. (I found them at location 0x04F350 in one file and at location 0x4E918 in an other)
So get a binary (hexadecimal) file editor and search for the setting bytes in little endian format.
To find 0x041E0044 look for the byte sequence 0x44, 0x00, 0x1E, 0x04.
The second setting directly follows the first one, so your firmware may have 0x44, 0x00, 0x1E, 0x04, 0x17, 0x00, 0x1A, 0x04 in that order.
Change the bytes to what they need to be and write these changes to the FLASH.
The values I have found in both the 1013D and 1014D are listed below.
//1014D new version 0x041E0043, 0x041A0019
//1014D old version 0x041E006D, 0x041A0022
//1013D version 1 0x041E0044, 0x041A0017
//1013D version 2 0x041E004A, 0x041A0017
//1013D version 3 0x041E0072, 0x041A001F