mirror of
https://github.com/niellun/FastCarPlay.git
synced 2026-06-07 09:38:25 +02:00
Option for hiding cursor pointer
This commit is contained in:
@@ -150,7 +150,6 @@ void Decoder::loop(AVCodecContext *context, AVCodecParserContext *parser, AVPack
|
||||
uint32_t counter = 0;
|
||||
|
||||
// Main decoding loop; runs until global_quit flag is set
|
||||
;
|
||||
while (_data->wait(_active))
|
||||
{
|
||||
// Get raw data segment from queue
|
||||
|
||||
@@ -355,6 +355,9 @@ int start()
|
||||
return 1;
|
||||
}
|
||||
|
||||
if(!Settings::cursor)
|
||||
SDL_ShowCursor(SDL_DISABLE);
|
||||
|
||||
// Create accelerated renderer for the window
|
||||
renderer = SDL_CreateRenderer(window, -1, (Settings::vsync ? (SDL_RENDERER_ACCELERATED | SDL_RENDERER_PRESENTVSYNC) : SDL_RENDERER_ACCELERATED));
|
||||
if (renderer)
|
||||
|
||||
@@ -15,6 +15,7 @@ public:
|
||||
static inline Setting<int> sourceFps{"source-fps", 50};
|
||||
static inline Setting<int> fps{"fps", 50};
|
||||
static inline Setting<bool> fullscreen{"fullscreen", true};
|
||||
static inline Setting<bool> cursor{"cursor", false};
|
||||
static inline Setting<bool> logging{"logging", false};
|
||||
|
||||
// Device configurations section
|
||||
|
||||
Reference in New Issue
Block a user