mirror of
https://github.com/hrydgard/ppsspp.git
synced 2026-11-29 09:13:39 +01:00
Update native with buildfix. Fix some resizing issues.
This commit is contained in:
1 parent
4d00a9b4bc
commit
c6caff61bf
9 files changed
+433
-20
No files matched your search
+7
-6
@@ -102,11 +102,11 @@ void Core_WaitInactive(int milliseconds) {
|
||||
}
|
||||
}
|
||||
|
||||
void UpdateScreenScale() {
|
||||
dp_xres = PSP_CoreParameter().pixelWidth;
|
||||
dp_yres = PSP_CoreParameter().pixelHeight;
|
||||
pixel_xres = PSP_CoreParameter().pixelWidth;
|
||||
pixel_yres = PSP_CoreParameter().pixelHeight;
|
||||
void UpdateScreenScale(int width, int height) {
|
||||
dp_xres = width;
|
||||
dp_yres = height;
|
||||
pixel_xres = width;
|
||||
pixel_yres = height;
|
||||
g_dpi = 72;
|
||||
g_dpi_scale = 1.0f;
|
||||
#ifdef _WIN32
|
||||
@@ -118,10 +118,11 @@ void UpdateScreenScale() {
|
||||
else
|
||||
#endif
|
||||
pixel_in_dps = (float)pixel_xres / dp_xres;
|
||||
NativeResized();
|
||||
}
|
||||
|
||||
static inline void UpdateRunLoop() {
|
||||
UpdateScreenScale();
|
||||
UpdateScreenScale(PSP_CoreParameter().pixelWidth, PSP_CoreParameter().pixelHeight);
|
||||
{
|
||||
{
|
||||
#ifdef _WIN32
|
||||
|
||||
Reference in new issue
Block a user