mirror of https://github.com/bsnes-emu/bsnes.git
18 lines
353 B
C++
18 lines
353 B
C++
#if defined(Hiro_Desktop)
|
|
|
|
namespace hiro {
|
|
|
|
auto pDesktop::size() -> Size {
|
|
QRect rect = QApplication::desktop()->screenGeometry();
|
|
return {rect.width(), rect.height()};
|
|
}
|
|
|
|
auto pDesktop::workspace() -> Geometry {
|
|
QRect rect = QApplication::desktop()->availableGeometry();
|
|
return {rect.x(), rect.y(), rect.width(), rect.height()};
|
|
}
|
|
|
|
}
|
|
|
|
#endif
|