mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-15 14:16:07 -06:00
.rainbow
git-svn-id: svn://ultimatepp.org/upp/trunk@11694 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
35f8ba3304
commit
18aabf0bf5
3 changed files with 4 additions and 4 deletions
|
|
@ -50,7 +50,7 @@ void Ctrl::SetMouseCursor(const Image& image)
|
|||
if(sdl_cursor_surface)
|
||||
SDL_FreeSurface(sdl_cursor_surface);
|
||||
|
||||
int a = image.GetAuxData();
|
||||
int64 a = image.GetAuxData();
|
||||
if(a)
|
||||
sdl_cursor = SDL_CreateSystemCursor(SDL_SystemCursor(a - 1));
|
||||
else {
|
||||
|
|
|
|||
|
|
@ -63,7 +63,7 @@ void FBInit()
|
|||
videoflags = SDL_HWSURFACE | SDL_HWACCEL | SDL_DOUBLEBUF | SDL_RESIZABLE;// | SDL_NOFRAME | SDL_FULLSCREEN;
|
||||
#endif
|
||||
screen_size = Size(1500, 900);
|
||||
screen.Create(screen_size, "First test");
|
||||
screen.Create(Rect(Point(20, 20), screen_size), "First test");
|
||||
|
||||
Ctrl::SetDesktopSize(screen_size);
|
||||
}
|
||||
|
|
|
|||
|
|
@ -7,7 +7,7 @@ NAMESPACE_UPP
|
|||
bool SDLWindow::Create(const Rect& rect, const char *title)
|
||||
{
|
||||
win = SDL_CreateWindow(title, rect.left, rect.top, rect.GetWidth(), rect.GetHeight(),
|
||||
SDL_WINDOW_SHOWN|SDL_WINDOW_OPENGL);
|
||||
SDL_WINDOW_SHOWN|SDL_WINDOW_OPENGL|SDL_WINDOW_BORDERLESS);
|
||||
if(!win)
|
||||
return false;
|
||||
MemoryIgnoreLeaksBegin();
|
||||
|
|
@ -20,7 +20,7 @@ bool SDLWindow::Create(const Rect& rect, const char *title)
|
|||
INTERLOCKED {
|
||||
static int64 h;
|
||||
serial = h++;
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue