mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 18:00:26 +00:00
Add some comments in fit_bounds.cpp
This commit is contained in:
parent
3eb8411ecc
commit
0934a78db6
@ -22,8 +22,10 @@
|
|||||||
|
|
||||||
namespace ui {
|
namespace ui {
|
||||||
|
|
||||||
|
#if 0 // TODO unused function, referenced in a comment in this file
|
||||||
static gfx::Region get_workarea_region()
|
static gfx::Region get_workarea_region()
|
||||||
{
|
{
|
||||||
|
// Returns the union of the workarea of all available screens
|
||||||
gfx::Region wa;
|
gfx::Region wa;
|
||||||
os::ScreenList screens;
|
os::ScreenList screens;
|
||||||
os::instance()->listScreens(screens);
|
os::instance()->listScreens(screens);
|
||||||
@ -31,6 +33,7 @@ static gfx::Region get_workarea_region()
|
|||||||
wa |= gfx::Region(screen->workarea());
|
wa |= gfx::Region(screen->workarea());
|
||||||
return wa;
|
return wa;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int fit_bounds(Display* display, int arrowAlign, const gfx::Rect& target, gfx::Rect& bounds)
|
int fit_bounds(Display* display, int arrowAlign, const gfx::Rect& target, gfx::Rect& bounds)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user