mirror of
https://gitea.wildfiregames.com/0ad/0ad.git
synced 2026-10-14 07:17:44 +00:00
Moves cursor to VideoMode to draw it via SDL.
It removes the software implementation intentionally. Because it duplicates SDL functionality. But it might be added in future on demand. Tested By: bb, Langbart Differential Revision: https://code.wildfiregames.com/D4278 This was SVN commit r25936.
This commit is contained in:
@@ -23,6 +23,7 @@
|
||||
#include "gui/GUIManager.h"
|
||||
#include "gui/ObjectBases/IGUIObject.h"
|
||||
#include "ps/GameSetup/Config.h"
|
||||
#include "ps/VideoMode.h"
|
||||
#include "scriptinterface/FunctionWrapper.h"
|
||||
#include "scriptinterface/ScriptInterface.h"
|
||||
#include "scriptinterface/StructuredClone.h"
|
||||
@@ -52,16 +53,14 @@ void PopGuiPage(const ScriptRequest& rq, JS::HandleValue args)
|
||||
g_GUI->PopPage(Script::WriteStructuredClone(rq, args));
|
||||
}
|
||||
|
||||
std::wstring SetCursor(const std::wstring& name)
|
||||
void SetCursor(const std::wstring& name)
|
||||
{
|
||||
std::wstring old = g_CursorName;
|
||||
g_CursorName = name;
|
||||
return old;
|
||||
g_VideoMode.SetCursor(name);
|
||||
}
|
||||
|
||||
void ResetCursor()
|
||||
{
|
||||
g_CursorName = g_DefaultCursor;
|
||||
g_VideoMode.ResetCursor();
|
||||
}
|
||||
|
||||
bool TemplateExists(const std::string& templateName)
|
||||
|
||||
Reference in New Issue
Block a user