mirror of https://github.com/stella-emu/stella.git
Revert "Make Common::Point use non-negative dimensions, like the other classes in Rect."
Seems I should do more testing before committing code ...
This reverts commit 1ea2c967ce
.
This commit is contained in:
parent
1ea2c967ce
commit
a225003ed9
|
@ -174,9 +174,7 @@ void FrameBufferSDL2::updateWindowedPos()
|
||||||
if (!myCenter && myWindow && !(SDL_GetWindowFlags(myWindow) & SDL_WINDOW_FULLSCREEN_DESKTOP))
|
if (!myCenter && myWindow && !(SDL_GetWindowFlags(myWindow) & SDL_WINDOW_FULLSCREEN_DESKTOP))
|
||||||
{
|
{
|
||||||
// save current windowed position
|
// save current windowed position
|
||||||
Int32 x = 0, y = 0;
|
SDL_GetWindowPosition(myWindow, &myWindowedPos.x, &myWindowedPos.y);
|
||||||
SDL_GetWindowPosition(myWindow, &x, &y);
|
|
||||||
myWindowedPos = Common::Point(x, y);
|
|
||||||
myOSystem.settings().setValue("windowedpos", myWindowedPos);
|
myOSystem.settings().setValue("windowedpos", myWindowedPos);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -32,12 +32,12 @@ namespace Common {
|
||||||
*/
|
*/
|
||||||
struct Point
|
struct Point
|
||||||
{
|
{
|
||||||
uInt32 x; //!< The horizontal part of the point
|
Int32 x; //!< The horizontal part of the point
|
||||||
uInt32 y; //!< The vertical part of the point
|
Int32 y; //!< The vertical part of the point
|
||||||
|
|
||||||
Point() : x(0), y(0) { }
|
Point() : x(0), y(0) { }
|
||||||
Point(const Point& p) : x(p.x), y(p.y) { }
|
Point(const Point& p) : x(p.x), y(p.y) { }
|
||||||
explicit Point(uInt32 x1, uInt32 y1) : x(x1), y(y1) { }
|
explicit Point(Int32 x1, Int32 y1) : x(x1), y(y1) { }
|
||||||
explicit Point(const string& p) : x(0), y(0) {
|
explicit Point(const string& p) : x(0), y(0) {
|
||||||
char c = '\0';
|
char c = '\0';
|
||||||
istringstream buf(p);
|
istringstream buf(p);
|
||||||
|
|
Loading…
Reference in New Issue