mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
20 lines
600 B
C
20 lines
600 B
C
#include "cursor.h"
|
|
|
|
#include "util/windows/registry.h"
|
|
|
|
void ffDetectCursor(const FFinstance* instance, FFCursorResult* result)
|
|
{
|
|
FF_UNUSED(instance);
|
|
|
|
FF_HKEY_AUTO_DESTROY hKey;
|
|
if(ffRegOpenKeyForRead(HKEY_CURRENT_USER, L"Control Panel\\Cursors", &hKey, &result->error))
|
|
{
|
|
if (!ffRegReadStrbuf(hKey, NULL, &result->theme, &result->error))
|
|
return;
|
|
|
|
uint32_t cursorBaseSize;
|
|
ffRegReadUint(hKey, L"CursorBaseSize", &cursorBaseSize, &result->error);
|
|
ffStrbufAppendF(&result->size, "%u", (unsigned) cursorBaseSize);
|
|
}
|
|
}
|