Skip to content

Commit 72f9f14

Browse files
committed
Mon 24 Feb 2020 08:34:44 EST
1 parent cf1db67 commit 72f9f14

File tree

5 files changed

+1350
-6
lines changed

5 files changed

+1350
-6
lines changed

Components/retro-go/components/odroid/odroid_display.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -693,6 +693,9 @@ void odroid_display_reset_scale(short width, short height)
693693
x_inc = SCREEN_WIDTH;
694694
y_inc = SCREEN_HEIGHT;
695695
x_origin = (SCREEN_WIDTH - width) / 2;
696+
#ifdef CONFIG_LCD_DRIVER_CHIP_RETRO_ESP32
697+
x_origin -= 7;
698+
#endif
696699
y_origin = (SCREEN_HEIGHT - height) / 2;
697700
x_scale = y_scale = 1.f;
698701
}
@@ -715,6 +718,11 @@ void odroid_display_set_scale(short width, short height, float aspect)
715718
x_origin = (SCREEN_WIDTH - (width * x_scale)) / 2.f;
716719
y_origin = (SCREEN_HEIGHT - (height * y_scale)) / 2.f;
717720

721+
#ifdef CONFIG_LCD_DRIVER_CHIP_RETRO_ESP32
722+
if(x_origin == 3) {x_origin = 0;}
723+
if(x_origin == 22) {x_origin = 14;}
724+
#endif
725+
718726
printf("%dx%d@%.3f x_inc:%d y_inc:%d x_scale:%.3f y_scale:%.3f x_origin:%d y_origin:%d\n",
719727
width, height, aspect, x_inc, y_inc, x_scale, y_scale, x_origin, y_origin);
720728
}

Emulators/handy-go/sdkconfig

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -83,10 +83,10 @@ CONFIG_MONITOR_BAUD=115200
8383
#
8484
# Retro ESP32 Configuration
8585
#
86-
CONFIG_LCD_DRIVER_CHIP_ODROID_GO=y
87-
CONFIG_LCD_DRIVER_CHIP_RETRO_ESP32=
88-
CONFIG_DEFAULT_MENU_KEY=y
89-
CONFIG_COMBO_MENU_KEY=
86+
CONFIG_LCD_DRIVER_CHIP_ODROID_GO=
87+
CONFIG_LCD_DRIVER_CHIP_RETRO_ESP32=y
88+
CONFIG_DEFAULT_MENU_KEY=
89+
CONFIG_COMBO_MENU_KEY=y
9090
CONFIG_IN_GAME_MENU_YES=y
9191
CONFIG_IN_GAME_MENU_NO=
9292

Launchers/retro-esp32/main/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1008,7 +1008,7 @@
10081008
delete_numbers();
10091009
SEEK[0] = 0;
10101010

1011-
// printf("\n----- %s -----", __func__);
1011+
printf("\n----- %s -----", __func__);
10121012

10131013
ROMS.total = 0;
10141014
char message[100];
@@ -1021,7 +1021,7 @@
10211021
strcat(&path[strlen(path) - 1],folder_path);
10221022
strcpy(ROM.path, path);
10231023

1024-
// printf("\npath:%s", path);
1024+
printf("\npath:%s", path);
10251025

10261026
if(directory != NULL) {
10271027
// printf("\npath:%s", path);

0 commit comments

Comments
 (0)