Skip to content

Commit

Permalink
🐛 Fix E3V2 width/height defines (MarlinFirmware#22994)
Browse files Browse the repository at this point in the history
  • Loading branch information
ellensp authored and thinkyhead committed Oct 22, 2021
1 parent c9718e1 commit e852732
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 11 deletions.
7 changes: 4 additions & 3 deletions Marlin/src/lcd/e3v2/common/dwin_api.h
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,11 @@

#include "../../../inc/MarlinConfig.h"

#ifndef DWIN_WIDTH
#if ENABLED(DWIN_MARLINUI_LANDSCAPE)
#define DWIN_WIDTH 480
#define DWIN_HEIGHT 272
#else
#define DWIN_WIDTH 272
#endif
#ifndef DWIN_HEIGHT
#define DWIN_HEIGHT 480
#endif

Expand Down
3 changes: 0 additions & 3 deletions Marlin/src/lcd/e3v2/creality/dwin_lcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,6 @@
* @brief 迪文屏控制操作函数
********************************************************************************/

#define DWIN_WIDTH 272
#define DWIN_HEIGHT 480

#include "../common/dwin_api.h"
#include "../common/dwin_set.h"
#include "../common/dwin_font.h"
Expand Down
5 changes: 0 additions & 5 deletions Marlin/src/lcd/e3v2/marlinui/dwin_lcd.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,11 +28,6 @@

#include "../../../inc/MarlinConfigPre.h"

#if ENABLED(DWIN_MARLINUI_LANDSCAPE)
#define DWIN_WIDTH 480
#define DWIN_HEIGHT 272
#endif

#include "../common/dwin_api.h"

// Picture ID
Expand Down

0 comments on commit e852732

Please sign in to comment.