bsnes/phoenix/windows/desktop.cpp

14 lines
317 B
C++

namespace phoenix {
Size pDesktop::size() {
return {GetSystemMetrics(SM_CXVIRTUALSCREEN), GetSystemMetrics(SM_CYVIRTUALSCREEN)};
}
Geometry pDesktop::workspace() {
RECT rc;
SystemParametersInfo(SPI_GETWORKAREA, 0, &rc, 0);
return {rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top};
}
}