From 539f4f7e17ecc549b76541b5f30188ff928d945b Mon Sep 17 00:00:00 2001 From: Vinyl Darkscratch Date: Thu, 1 Mar 2018 15:48:50 -0800 Subject: [PATCH] Implement functions --- binding-mri/wallpaper-binding.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/binding-mri/wallpaper-binding.cpp b/binding-mri/wallpaper-binding.cpp index 931581c..96eff9c 100644 --- a/binding-mri/wallpaper-binding.cpp +++ b/binding-mri/wallpaper-binding.cpp @@ -100,7 +100,11 @@ end: RegCloseKey(hKey); #else #ifdef __APPLE__ - // XXX Implement me! + if (!isCached) { + MacDesktop::CacheCurrentBackground(); + isCached = true; + } + MacDesktop::ChangeBackground(imgname); #else // XXX Implement me! #endif @@ -138,7 +142,7 @@ RB_METHOD(wallpaperReset) } #else #ifdef __APPLE__ - // XXX Implement me! + MacDesktop::ResetBackground(); #else // XXX Implement me! #endif