Fix landscape / portrait

This commit is contained in:
InsanityAutomation
2024-01-28 18:18:06 -05:00
parent e3bf7c4b30
commit 3fba42bb22
44 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -4,7 +4,7 @@
Select Machine
*/
#define DWIN_PORTRAIT
// Touchscreen
//#define MachineCR10SPro // Graphics LCD Requires soldering R64 and R66
@@ -2432,7 +2432,7 @@ void SetTouchScreenConfiguration() {
if (Settings.display_sound) cfg_bits |= 1UL << 3; // 3: audio
if (Settings.display_standby) cfg_bits |= 1UL << 2; // 2: backlight on standby
if(Settings.screen_rotation==10) cfg_bits |= 1UL << 1; // 1 & 0: Inversion
#if DISABLED(LOWRES_DWIN)
#if (DISABLED(LOWRES_DWIN) && DISABLED(DWIN_PORTRAIT)) || (ENABLED(LOWRES_DWIN) && ENABLED(DWIN_PORTRAIT))
cfg_bits |= 1UL << 0; // Portrait Mode or 800x480 display has 0 point rotated 90deg from 480x272 display
#endif
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.