Update to v094r40 release.
byuu says:
Changelog:
- updated to newest hiro API
- SFC performance profile builds once again
- hiro: Qt port completed
Errata 1: the hiro/Qt target won't run tomoko just yet. Starts by
crashing inside InputSettings because hiro/Qt isn't forcefully selecting
the first item added to a ComboButton just yet. Even with a monkey patch
to get around that, the UI is incredibly unstable. Lots of geometry
calculation bugs, and a crash when you try and access certain folders in
the browser dialog. Lots of work left to be done there, sadly.
Errata 2: the hiro/Windows port has black backgrounds on all ListView
items. It's because I need to test for unassigned colors and grab the
default Windows brush colors in those cases.
Note: alternating row colors on multi-column ListView widgets is gone
now. Not a bug. May add it back later, but I'm not sure. It doesn't
interact nicely with per-cell background colors.
Things left to do:
First, I have to fix the Windows and Qt target bugs.
Next, I need to go through and revise the hiro API even more (nothing
too major.)
Next, I need to update icarus to use the new hiro API, and add support
for the SFC games database.
Next, I have to rewrite my TSV->BML cheat code tool.
Next, I need to post a final WIP of higan+icarus publicly and wait a few
days.
Next, I need to fix any bugs reported from the final WIP that I can.
Finally, I should be able to release v095.
2015-08-18 10:18:00 +00:00
|
|
|
#if defined(Hiro_Desktop)
|
2013-03-15 13:11:33 +00:00
|
|
|
|
Update to v094r40 release.
byuu says:
Changelog:
- updated to newest hiro API
- SFC performance profile builds once again
- hiro: Qt port completed
Errata 1: the hiro/Qt target won't run tomoko just yet. Starts by
crashing inside InputSettings because hiro/Qt isn't forcefully selecting
the first item added to a ComboButton just yet. Even with a monkey patch
to get around that, the UI is incredibly unstable. Lots of geometry
calculation bugs, and a crash when you try and access certain folders in
the browser dialog. Lots of work left to be done there, sadly.
Errata 2: the hiro/Windows port has black backgrounds on all ListView
items. It's because I need to test for unassigned colors and grab the
default Windows brush colors in those cases.
Note: alternating row colors on multi-column ListView widgets is gone
now. Not a bug. May add it back later, but I'm not sure. It doesn't
interact nicely with per-cell background colors.
Things left to do:
First, I have to fix the Windows and Qt target bugs.
Next, I need to go through and revise the hiro API even more (nothing
too major.)
Next, I need to update icarus to use the new hiro API, and add support
for the SFC games database.
Next, I have to rewrite my TSV->BML cheat code tool.
Next, I need to post a final WIP of higan+icarus publicly and wait a few
days.
Next, I need to fix any bugs reported from the final WIP that I can.
Finally, I should be able to release v095.
2015-08-18 10:18:00 +00:00
|
|
|
namespace hiro {
|
|
|
|
|
|
|
|
auto pDesktop::size() -> Size {
|
2019-08-16 10:44:16 +00:00
|
|
|
#if defined(DISPLAY_WINDOWS)
|
|
|
|
return {GetSystemMetrics(SM_CXVIRTUALSCREEN), GetSystemMetrics(SM_CYVIRTUALSCREEN)};
|
|
|
|
#elif defined(DISPLAY_XORG)
|
|
|
|
auto display = XOpenDisplay(nullptr);
|
|
|
|
int screen = DefaultScreen(display);
|
|
|
|
XWindowAttributes attributes;
|
|
|
|
XGetWindowAttributes(display, RootWindow(display, screen), &attributes);
|
|
|
|
XCloseDisplay(display);
|
|
|
|
return {attributes.width, attributes.height};
|
|
|
|
#else
|
|
|
|
//this only returns the geometry of the primary monitor rather than the entire desktop
|
2012-01-15 08:29:57 +00:00
|
|
|
QRect rect = QApplication::desktop()->screenGeometry();
|
2013-05-02 11:25:45 +00:00
|
|
|
return {rect.width(), rect.height()};
|
2019-08-16 10:44:16 +00:00
|
|
|
#endif
|
2012-01-15 08:29:57 +00:00
|
|
|
}
|
|
|
|
|
Update to v094r40 release.
byuu says:
Changelog:
- updated to newest hiro API
- SFC performance profile builds once again
- hiro: Qt port completed
Errata 1: the hiro/Qt target won't run tomoko just yet. Starts by
crashing inside InputSettings because hiro/Qt isn't forcefully selecting
the first item added to a ComboButton just yet. Even with a monkey patch
to get around that, the UI is incredibly unstable. Lots of geometry
calculation bugs, and a crash when you try and access certain folders in
the browser dialog. Lots of work left to be done there, sadly.
Errata 2: the hiro/Windows port has black backgrounds on all ListView
items. It's because I need to test for unassigned colors and grab the
default Windows brush colors in those cases.
Note: alternating row colors on multi-column ListView widgets is gone
now. Not a bug. May add it back later, but I'm not sure. It doesn't
interact nicely with per-cell background colors.
Things left to do:
First, I have to fix the Windows and Qt target bugs.
Next, I need to go through and revise the hiro API even more (nothing
too major.)
Next, I need to update icarus to use the new hiro API, and add support
for the SFC games database.
Next, I have to rewrite my TSV->BML cheat code tool.
Next, I need to post a final WIP of higan+icarus publicly and wait a few
days.
Next, I need to fix any bugs reported from the final WIP that I can.
Finally, I should be able to release v095.
2015-08-18 10:18:00 +00:00
|
|
|
auto pDesktop::workspace() -> Geometry {
|
2019-08-16 10:44:16 +00:00
|
|
|
#if defined(DISPLAY_WINDOWS)
|
|
|
|
RECT rc;
|
|
|
|
SystemParametersInfo(SPI_GETWORKAREA, 0, &rc, 0);
|
|
|
|
return {rc.left, rc.top, rc.right - rc.left, rc.bottom - rc.top};
|
|
|
|
#elif defined(DISPLAY_XORG)
|
|
|
|
auto display = XOpenDisplay(nullptr);
|
|
|
|
int screen = DefaultScreen(display);
|
|
|
|
|
|
|
|
int format;
|
|
|
|
unsigned char* data = nullptr;
|
|
|
|
unsigned long items, after;
|
|
|
|
XlibAtom returnAtom;
|
|
|
|
|
|
|
|
XlibAtom netWorkarea = XInternAtom(display, "_NET_WORKAREA", XlibTrue);
|
|
|
|
int result = XGetWindowProperty(
|
|
|
|
display, RootWindow(display, screen), netWorkarea, 0, 4, XlibFalse,
|
|
|
|
XInternAtom(display, "CARDINAL", XlibTrue), &returnAtom, &format, &items, &after, &data
|
|
|
|
);
|
|
|
|
|
|
|
|
XlibAtom cardinal = XInternAtom(display, "CARDINAL", XlibTrue);
|
|
|
|
if(result == Success && returnAtom == cardinal && format == 32 && items == 4) {
|
|
|
|
unsigned long* workarea = (unsigned long*)data;
|
|
|
|
XCloseDisplay(display);
|
|
|
|
return {(int)workarea[0], (int)workarea[1], (int)workarea[2], (int)workarea[3]};
|
|
|
|
}
|
|
|
|
|
|
|
|
XCloseDisplay(display);
|
|
|
|
auto size = Desktop::size();
|
|
|
|
return {0, 0, size.width(), size.height()};
|
|
|
|
#else
|
|
|
|
//this only returns the workspace of the primary monitor rather than the entire desktop
|
2012-01-15 08:29:57 +00:00
|
|
|
QRect rect = QApplication::desktop()->availableGeometry();
|
2013-05-02 11:25:45 +00:00
|
|
|
return {rect.x(), rect.y(), rect.width(), rect.height()};
|
2019-08-16 10:44:16 +00:00
|
|
|
#endif
|
2012-01-15 08:29:57 +00:00
|
|
|
}
|
2013-03-15 13:11:33 +00:00
|
|
|
|
|
|
|
}
|
Update to v094r40 release.
byuu says:
Changelog:
- updated to newest hiro API
- SFC performance profile builds once again
- hiro: Qt port completed
Errata 1: the hiro/Qt target won't run tomoko just yet. Starts by
crashing inside InputSettings because hiro/Qt isn't forcefully selecting
the first item added to a ComboButton just yet. Even with a monkey patch
to get around that, the UI is incredibly unstable. Lots of geometry
calculation bugs, and a crash when you try and access certain folders in
the browser dialog. Lots of work left to be done there, sadly.
Errata 2: the hiro/Windows port has black backgrounds on all ListView
items. It's because I need to test for unassigned colors and grab the
default Windows brush colors in those cases.
Note: alternating row colors on multi-column ListView widgets is gone
now. Not a bug. May add it back later, but I'm not sure. It doesn't
interact nicely with per-cell background colors.
Things left to do:
First, I have to fix the Windows and Qt target bugs.
Next, I need to go through and revise the hiro API even more (nothing
too major.)
Next, I need to update icarus to use the new hiro API, and add support
for the SFC games database.
Next, I have to rewrite my TSV->BML cheat code tool.
Next, I need to post a final WIP of higan+icarus publicly and wait a few
days.
Next, I need to fix any bugs reported from the final WIP that I can.
Finally, I should be able to release v095.
2015-08-18 10:18:00 +00:00
|
|
|
|
|
|
|
#endif
|