[Any version] Bad default window position

Where bugs go to lie down and rest

Moderator: Moderator

Post Reply
Message
Author
Suslik
Spiderkin
Posts: 481
Joined: Wed Aug 22, 2012 4:41 pm

[Any version] Bad default window position

#1 Post by Suslik »

Not actually a bug, but a very annoying thing. If I have taskbar at the left side of my screen, tome window is created under it:
Image
I cannot see the window border(title) so the only way to move it is to use alt+space then move.

I suppose the necessary rect can be obtained by calling SystemParametersInfo(SPI_GETWORKAREA) under windows:
http://msdn.microsoft.com/en-us/library ... s.85).aspx
Retrieves the size of the work area on the primary display monitor. The work area is the portion of the screen not obscured by the system taskbar or by application desktop toolbars. The pvParam parameter must point to a RECT structure that receives the coordinates of the work area, expressed in virtual screen coordinates.

Is it possible to find a cross-platform solution for with SDL?

Also an offtop question. Is it a bug or a feature that every time I enter a low-level dungeon(say scintillating caves at lvl18) I go straight to the last level of it(level 3 of scintillating caves)?

phantomglider
Archmage
Posts: 372
Joined: Fri Jan 20, 2012 12:13 am

Re: [Any version] Bad default window position

#2 Post by phantomglider »

Suslik wrote: Also an offtop question. Is it a bug or a feature that every time I enter a low-level dungeon(say scintillating caves at lvl18) I go straight to the last level of it(level 3 of scintillating caves)?
That's a feature. There's even a popup for it - "This area is so easy for you that you easily stroll to the last level" or something to that effect. It's because beating all the tier 1 dungeons makes your character much more powerful but it's kind of a chore after the first two or three.
<Ferret> The Spellblaze was like a nuclear disaster apparently: ammo became the "real" currency.

Suslik
Spiderkin
Posts: 481
Joined: Wed Aug 22, 2012 4:41 pm

Re: [Any version] Bad default window position

#3 Post by Suslik »

Well, 43a window position is somewhat better - now the window does not appear under the taskbar, instead it appears mostly outside of the desktop : D

How about trying something like GetClientArea()? Is it possible?

Post Reply