Tux Paint tries to open its window in the center.
This commit is contained in:
parent
e964eb17a0
commit
b9d287992d
2 changed files with 10 additions and 1 deletions
|
|
@ -29,6 +29,9 @@ $Id$
|
||||||
Discovered (or assumed) window size and directory settings are shown
|
Discovered (or assumed) window size and directory settings are shown
|
||||||
when tuxpaint-import is first run (even with no arguments).
|
when tuxpaint-import is first run (even with no arguments).
|
||||||
|
|
||||||
|
* In windowed mode, Tux Paint tries to open its window in the center
|
||||||
|
of the screen (if supported by the OS or window manager).
|
||||||
|
|
||||||
* Tool improvements:
|
* Tool improvements:
|
||||||
------------------------
|
------------------------
|
||||||
* Magic Sparkles can now be different colors.
|
* Magic Sparkles can now be different colors.
|
||||||
|
|
|
||||||
|
|
@ -22,7 +22,7 @@
|
||||||
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
||||||
(See COPYING.txt)
|
(See COPYING.txt)
|
||||||
|
|
||||||
June 14, 2002 - February 17, 2006
|
June 14, 2002 - February 19, 2006
|
||||||
$Id$
|
$Id$
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
@ -323,6 +323,8 @@ extern WrapperData macosx;
|
||||||
#define SDL_mutexV(lock) // release lock
|
#define SDL_mutexV(lock) // release lock
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#include "SDL_getenv.h"
|
||||||
|
|
||||||
#include "i18n.h"
|
#include "i18n.h"
|
||||||
#include "cursor.h"
|
#include "cursor.h"
|
||||||
#include "pixels.h"
|
#include "pixels.h"
|
||||||
|
|
@ -6060,6 +6062,8 @@ static void setup(int argc, char * argv[])
|
||||||
|
|
||||||
if (!fullscreen)
|
if (!fullscreen)
|
||||||
{
|
{
|
||||||
|
putenv((char *) "SDL_VIDEO_WINDOW_POS=center");
|
||||||
|
|
||||||
#ifdef USE_HWSURFACE
|
#ifdef USE_HWSURFACE
|
||||||
screen = SDL_SetVideoMode(WINDOW_WIDTH, WINDOW_HEIGHT,
|
screen = SDL_SetVideoMode(WINDOW_WIDTH, WINDOW_HEIGHT,
|
||||||
VIDEO_BPP, SDL_HWSURFACE);
|
VIDEO_BPP, SDL_HWSURFACE);
|
||||||
|
|
@ -6067,6 +6071,8 @@ static void setup(int argc, char * argv[])
|
||||||
screen = SDL_SetVideoMode(WINDOW_WIDTH, WINDOW_HEIGHT,
|
screen = SDL_SetVideoMode(WINDOW_WIDTH, WINDOW_HEIGHT,
|
||||||
VIDEO_BPP, SDL_SWSURFACE);
|
VIDEO_BPP, SDL_SWSURFACE);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
putenv((char *) "SDL_VIDEO_WINDOW_POS=nopref");
|
||||||
}
|
}
|
||||||
|
|
||||||
if (screen == NULL)
|
if (screen == NULL)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue