git-svn-id: svn://ultimatepp.org/upp/trunk@11694 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
cxl 2018-01-15 12:51:33 +00:00
parent 35f8ba3304
commit 18aabf0bf5
3 changed files with 4 additions and 4 deletions

View file

@ -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 {

View file

@ -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);
}

View file

@ -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;
}