mirror of
https://github.com/RPCSX/rpcsx.git
synced 2026-02-02 05:44:20 +01:00
* Fix gs_frame spawning on a screen other than the one the RPCS3 window is on for multi-monitor setups * Cleaned up code & refactored it into a utility function for reuse * Qt: take gs_frame's framemargins into account by using showEvent
15 lines
342 B
C++
15 lines
342 B
C++
#pragma once
|
|
|
|
#include "stdafx.h"
|
|
#include <QtCore>
|
|
|
|
namespace gui
|
|
{
|
|
namespace utils
|
|
{
|
|
// Creates a frame geometry rectangle with given width height that's centered inside the origin,
|
|
// while still considering screen boundaries.
|
|
QRect create_centered_window_geometry(const QRect& origin, s32 width, s32 height);
|
|
} // utils
|
|
} // gui
|