mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-02-24 15:12:23 +01:00
byuu says: Not an official WIP (a WIP WIP? A meta-WIP?), just throwing in the new fullscreen code, and I noticed that OpenGL colors in 30-bit mode are all fucked up now for some strange reason. So I'm just using this snapshot to debug the issue.
17 lines
390 B
C++
17 lines
390 B
C++
namespace phoenix {
|
|
|
|
unsigned pMonitor::count() {
|
|
return QApplication::desktop()->screenCount();
|
|
}
|
|
|
|
Geometry pMonitor::geometry(unsigned monitor) {
|
|
QRect rectangle = QApplication::desktop()->screenGeometry(monitor);
|
|
return {rectangle.x(), rectangle.y(), rectangle.width(), rectangle.height()};
|
|
}
|
|
|
|
unsigned pMonitor::primary() {
|
|
return QApplication::desktop()->primaryScreen();
|
|
}
|
|
|
|
}
|