Update native with buildfix. Fix some resizing issues.

This commit is contained in:
Henrik Rydgard committed 2014-02-10 15:14:45 +01:00
1 parent 4d00a9b4bc
commit c6caff61bf
9 files changed
+433 -20

No files matched your search

+7 -6
View File
@@ -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