Skip to content

Commit

Permalink
Mon 24 Feb 2020 08:34:44 EST
Browse files Browse the repository at this point in the history
  • Loading branch information
32teeth committed Feb 24, 2020
1 parent cf1db67 commit 72f9f14
Show file tree
Hide file tree
Showing 5 changed files with 1,350 additions and 6 deletions.
8 changes: 8 additions & 0 deletions Components/retro-go/components/odroid/odroid_display.c
Original file line number Diff line number Diff line change
Expand Up @@ -693,6 +693,9 @@ void odroid_display_reset_scale(short width, short height)
x_inc = SCREEN_WIDTH;
y_inc = SCREEN_HEIGHT;
x_origin = (SCREEN_WIDTH - width) / 2;
#ifdef CONFIG_LCD_DRIVER_CHIP_RETRO_ESP32
x_origin -= 7;
#endif
y_origin = (SCREEN_HEIGHT - height) / 2;
x_scale = y_scale = 1.f;
}
Expand All @@ -715,6 +718,11 @@ void odroid_display_set_scale(short width, short height, float aspect)
x_origin = (SCREEN_WIDTH - (width * x_scale)) / 2.f;
y_origin = (SCREEN_HEIGHT - (height * y_scale)) / 2.f;

#ifdef CONFIG_LCD_DRIVER_CHIP_RETRO_ESP32
if(x_origin == 3) {x_origin = 0;}
if(x_origin == 22) {x_origin = 14;}
#endif

printf("%dx%d@%.3f x_inc:%d y_inc:%d x_scale:%.3f y_scale:%.3f x_origin:%d y_origin:%d\n",
width, height, aspect, x_inc, y_inc, x_scale, y_scale, x_origin, y_origin);
}
Expand Down
8 changes: 4 additions & 4 deletions Emulators/handy-go/sdkconfig
Original file line number Diff line number Diff line change
Expand Up @@ -83,10 +83,10 @@ CONFIG_MONITOR_BAUD=115200
#
# Retro ESP32 Configuration
#
CONFIG_LCD_DRIVER_CHIP_ODROID_GO=y
CONFIG_LCD_DRIVER_CHIP_RETRO_ESP32=
CONFIG_DEFAULT_MENU_KEY=y
CONFIG_COMBO_MENU_KEY=
CONFIG_LCD_DRIVER_CHIP_ODROID_GO=
CONFIG_LCD_DRIVER_CHIP_RETRO_ESP32=y
CONFIG_DEFAULT_MENU_KEY=
CONFIG_COMBO_MENU_KEY=y
CONFIG_IN_GAME_MENU_YES=y
CONFIG_IN_GAME_MENU_NO=

Expand Down
4 changes: 2 additions & 2 deletions Launchers/retro-esp32/main/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1008,7 +1008,7 @@
delete_numbers();
SEEK[0] = 0;

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

ROMS.total = 0;
char message[100];
Expand All @@ -1021,7 +1021,7 @@
strcat(&path[strlen(path) - 1],folder_path);
strcpy(ROM.path, path);

// printf("\npath:%s", path);
printf("\npath:%s", path);

if(directory != NULL) {
// printf("\npath:%s", path);
Expand Down
Loading

0 comments on commit 72f9f14

Please sign in to comment.