Update to bsnes v107r4 beta release.

byuu says:

  - bsnes: added video filters from bsnes v082
  - bsnes: added ZSNES snow effect option when games paused or unloaded
    (no, I'm not joking)
  - bsnes: added 7-zip support (LZMA 19.00 SDK)

[Recent higan WIPs have also mentioned bsnes changes, although the higan code
no longer includes the bsnes code. These changes include:

  - higan, bsnes: added EXLOROM, EXLOROM-RAM, EXHIROM mappings
  - higan, bsnes: focus the viewport after leaving fullscreen exclusive
    mode
  - bsnes: re-added mightymo's cheat code database
  - bsnes: improved make install rules for the game and cheat code
    databases
  - bsnes: delayed construction of hiro::Window objects to properly show
    bsnes window icons

- Ed.]
This commit is contained in:
Tim Allen
2019-07-07 19:44:09 +10:00
parent becbca47d4
commit d87a0f633d
280 changed files with 120826 additions and 1521 deletions

View File

@@ -11,13 +11,14 @@ struct Monitor {
//DPI scale X
inline auto sx(float x) -> float {
static auto scale = Monitor::dpi().x() / 96.0;
//round DPI scalar to increments of 0.5 (eg 1.0, 1.5, 2.0, ...)
static auto scale = round(Monitor::dpi().x() / 96.0 * 2.0) / 2.0;
return x * scale;
}
//DPI scale y
inline auto sy(float y) -> float {
static auto scale = Monitor::dpi().y() / 96.0;
static auto scale = round(Monitor::dpi().y() / 96.0 * 2.0) / 2.0;
return y * scale;
}