mirror of
https://github.com/morgan9e/FreeRDP
synced 2026-04-15 00:44:19 +09:00
[client,sdl] fix redundant initializer
This commit is contained in:
@@ -33,8 +33,7 @@ static const SDL_Color errorcolor = { 0xf7, 0x22, 0x30, 0x60 };
|
||||
static const Uint32 vpadding = 5;
|
||||
static const Uint32 hpadding = 5;
|
||||
|
||||
SDLConnectionDialog::SDLConnectionDialog(rdpContext* context)
|
||||
: _context(context), _window(nullptr), _renderer(nullptr)
|
||||
SDLConnectionDialog::SDLConnectionDialog(rdpContext* context) : _context(context)
|
||||
{
|
||||
SDL_Init(SDL_INIT_TIMER | SDL_INIT_VIDEO);
|
||||
hide();
|
||||
|
||||
@@ -448,7 +448,7 @@ BOOL sdlDispContext::uninit(DispClientContext* disp)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
sdlDispContext::sdlDispContext(SdlContext* sdl) : _sdl(sdl), _timer(0)
|
||||
sdlDispContext::sdlDispContext(SdlContext* sdl) : _sdl(sdl)
|
||||
{
|
||||
SDL_Init(SDL_INIT_TIMER | SDL_INIT_VIDEO);
|
||||
|
||||
|
||||
@@ -22,8 +22,7 @@
|
||||
|
||||
SdlWindow::SdlWindow(const std::string& title, Sint32 startupX, Sint32 startupY, Sint32 width,
|
||||
Sint32 height, Uint32 flags)
|
||||
: _window(SDL_CreateWindow(title.c_str(), startupX, startupY, width, height, flags)),
|
||||
_offset_x(0), _offset_y(0)
|
||||
: _window(SDL_CreateWindow(title.c_str(), startupX, startupY, width, height, flags))
|
||||
{
|
||||
}
|
||||
|
||||
|
||||
@@ -33,8 +33,7 @@ static const SDL_Color errorcolor = { 0xf7, 0x22, 0x30, 0x60 };
|
||||
static const Uint32 vpadding = 5;
|
||||
static const Uint32 hpadding = 5;
|
||||
|
||||
SDLConnectionDialog::SDLConnectionDialog(rdpContext* context)
|
||||
: _context(context), _window(nullptr), _renderer(nullptr)
|
||||
SDLConnectionDialog::SDLConnectionDialog(rdpContext* context) : _context(context)
|
||||
{
|
||||
SDL_Init(SDL_INIT_TIMER | SDL_INIT_VIDEO);
|
||||
hide();
|
||||
|
||||
@@ -441,7 +441,7 @@ BOOL sdlDispContext::uninit(DispClientContext* disp)
|
||||
return TRUE;
|
||||
}
|
||||
|
||||
sdlDispContext::sdlDispContext(SdlContext* sdl) : _sdl(sdl), _timer(0)
|
||||
sdlDispContext::sdlDispContext(SdlContext* sdl) : _sdl(sdl)
|
||||
{
|
||||
SDL_Init(SDL_INIT_TIMER | SDL_INIT_VIDEO);
|
||||
|
||||
|
||||
@@ -22,7 +22,6 @@
|
||||
|
||||
SdlWindow::SdlWindow(const std::string& title, Sint32 startupX, Sint32 startupY, Sint32 width,
|
||||
Sint32 height, Uint32 flags)
|
||||
: _offset_x(0), _offset_y(0)
|
||||
{
|
||||
auto props = SDL_CreateProperties();
|
||||
SDL_SetStringProperty(props, SDL_PROP_WINDOW_CREATE_TITLE_STRING, title.c_str());
|
||||
|
||||
Reference in New Issue
Block a user