Merge pull request #2537 from heuripedes/master

Small improvements
This commit is contained in:
Twinaphex 2015-12-07 16:35:12 +01:00
commit ce9be72757
2 changed files with 3 additions and 3 deletions

View File

@ -491,7 +491,7 @@ bool menu_display_ctl(enum menu_display_ctl_state state, void *data)
if (settings->menu.dpi.override_enable)
*dpi = settings->menu.dpi.override_value;
else if (!gfx_ctx_get_metrics(DISPLAY_METRIC_DPI, dpi))
else if (!gfx_ctx_get_metrics(DISPLAY_METRIC_DPI, dpi) || !*dpi)
*dpi = menu_dpi_override_value;
}
return true;

View File

@ -14,7 +14,7 @@
*/
#include <string.h>
#include <errno.h>
#include <file/nbio.h>
#include <formats/image.h>
#include <formats/rpng.h>
@ -325,7 +325,7 @@ bool rarch_task_push_image_load(const char *fullpath, const char *type, rarch_ta
if (!handle)
{
RARCH_ERR("Could not create new file loading handle.\n");
RARCH_ERR("[image load] Failed to open '%s': %s.\n", fullpath, strerror(errno));
return false;
}