1/*
2 * Copyright (C) 2020-2022 The opuntiaOS Project Authors.
3 * + Contributed by Nikita Melekhin <nimelehin@gmail.com>
4 *
5 * Use of this source code is governed by a BSD-style license that can be
6 * found in the LICENSE file.
7 */
8
9#include "CursorManager.h"
10#include <libg/ImageLoaders/PNGLoader.h>
11
12#ifdef TARGET_DESKTOP
13#define CURSOR_PATH "/res/system/arrow.png"
14#elif TARGET_MOBILE
15#define CURSOR_PATH "/res/system/mobile/cursor.png"
16#endif
17
18namespace WinServer {
19
20CursorManager* s_WinServer_CursorManager_the = nullptr;
21
22CursorManager::CursorManager()
23 : m_screen(Screen::the())
24{
25 s_WinServer_CursorManager_the = this;
26 LG::PNG::PNGLoader loader;
27 m_std_cursor = loader.load_from_file(CURSOR_PATH);
28}
29
30} // namespace WinServer