bsnes/hiro/windows/desktop.cpp
byuu 903d1e4012 v107.8
* GB: integrated SameBoy v0.12.1 by Lior Halphon
* SFC: added HG51B169 (Cx4) math tables into bsnes binary
2019-07-17 21:11:46 +09:00

18 lines
352 B
C++
Executable File

#if defined(Hiro_Desktop)
namespace hiro {
auto pDesktop::size() -> Size {
return {GetSystemMetrics(SM_CXVIRTUALSCREEN), GetSystemMetrics(SM_CYVIRTUALSCREEN)};
}
auto pDesktop::workspace() -> Geometry {
RECT rc;
SystemParametersInfo(SPI_GETWORKAREA, 0, &rc, 0);
return {rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top};
}
}
#endif