Skip to content

Commit daffb55

Browse files
committed
[libretro] Fix aspect ration when changing res
1 parent ee12322 commit daffb55

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

platforms/libretro/Makefile

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -320,13 +320,16 @@ endif
320320

321321
LDFLAGS += $(LIBM)
322322

323+
DEBUG ?= 0
323324
ifeq ($(DEBUG), 1)
325+
BUILD_CONFIG = Debug
324326
CXXFLAGS += -O0 -DDEBUG -g
325327
else
328+
BUILD_CONFIG = Release
326329
CXXFLAGS += -O3
327330
endif
328331

329-
GIT_VERSION ?= " $(shell git describe --abbrev=7 --dirty --always --tags || echo unknown)"
332+
GIT_VERSION ?= "$(shell git describe --abbrev=7 --dirty --always --tags || echo unknown)"
330333
ifneq ($(GIT_VERSION)," unknown")
331334
CXXFLAGS += -DEMULATOR_BUILD=\"$(GIT_VERSION)\"
332335
endif
@@ -341,7 +344,7 @@ CFLAGS += -DGEARCOLECO_DISABLE_DISASSEMBLER -Wall -D__LIBRETRO__ $(fpic)
341344
CXXFLAGS += -DGEARCOLECO_DISABLE_DISASSEMBLER -Wall -D__LIBRETRO__ $(fpic)
342345

343346
all: $(TARGET)
344-
@echo Build complete: $(TARGET_NAME) $(DEBUG) - $(GIT_VERSION) - $(platform)
347+
@echo Build complete: $(TARGET_NAME) $(BUILD_CONFIG) - $(GIT_VERSION) - $(platform)
345348

346349
$(TARGET): $(OBJECTS)
347350
ifeq ($(STATIC_LINKING), 1)

platforms/libretro/libretro.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -590,7 +590,7 @@ void retro_run(void)
590590
info.geometry.base_height = runtime_info.screen_height;
591591
info.geometry.max_width = runtime_info.screen_width;
592592
info.geometry.max_height = runtime_info.screen_height;
593-
info.geometry.aspect_ratio = 0.0;
593+
info.geometry.aspect_ratio = aspect_ratio;
594594

595595
environ_cb(RETRO_ENVIRONMENT_SET_GEOMETRY, &info.geometry);
596596
}

0 commit comments

Comments
 (0)