aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2022-09-15 09:14:59 +0300
committerEli Zaretskii2022-09-15 09:14:59 +0300
commit52a3ba102c0bcfda1b69e33be2a93a245a4c3a84 (patch)
tree393122ad365a8cae044174554b4ed53951c32414 /src
parent5fe9a1a85ae6d54196031157a735352f6ab655ff (diff)
downloademacs-52a3ba102c0bcfda1b69e33be2a93a245a4c3a84.tar.gz
emacs-52a3ba102c0bcfda1b69e33be2a93a245a4c3a84.zip
Revert "; Fix doc string of 'loaddefs-generate'"
This reverts commit 5fe9a1a85ae6d54196031157a735352f6ab655ff. It included unrelated changes.
Diffstat (limited to 'src')
-rw-r--r--src/w32fns.c45
1 files changed, 0 insertions, 45 deletions
diff --git a/src/w32fns.c b/src/w32fns.c
index 57296bd4e07..745458d0a03 100644
--- a/src/w32fns.c
+++ b/src/w32fns.c
@@ -10447,51 +10447,6 @@ w32_get_resource (const char *key, const char *name, LPDWORD lpdwtype)
10447 return (NULL); 10447 return (NULL);
10448} 10448}
10449 10449
10450#ifdef WINDOWSNT
10451
10452/***********************************************************************
10453 Wallpaper
10454 ***********************************************************************/
10455
10456#if 0
10457
10458typedef BOOL (WINAPI * SystemParametersInfoW_Proc) (UINT,UINT,PVOID,UINT);
10459static SystemParametersInfoW_Proc system_parameters_info_w_fn;
10460
10461DEFUN ("w32-set-wallpaper", Fw32_set_wallpaper, Sw32_set_wallpaper, 1, 1, 0,
10462 doc: /* Set the desktop wallpaper image to IMAGE-FILE. */)
10463 (Lisp_Object image_file)
10464{
10465 Lisp_Object encoded = ENCODE_FILE (Fexpand_file_name (image_file, Qnil));
10466 char *fname = SSDATA (encoded);
10467
10468 if (w32_unicode_filenames)
10469 {
10470 }
10471 else
10472 {
10473 char fname_a[MAX_PATH];
10474
10475 if (filename_to_ansi (fname, fname_a) != 0)
10476 error ("Wallpaper file %s does not exist or cannot be accessed", fname);
10477
10478 BOOL result = SystemParametersInfoA (SPI_SETDESKWALLPAPER, 0, fname_a,
10479 SPIF_SENDCHANGE);
10480 if (!result)
10481 {
10482 DWORD err = GetLastError ();
10483 if (err)
10484 error ("Could not set wallpaper: %s", w32_strerror (err));
10485 else
10486 error ("Could not set wallpaper");
10487 }
10488 }
10489 return Qnil;
10490}
10491#endif
10492
10493#endif
10494
10495/*********************************************************************** 10450/***********************************************************************
10496 Initialization 10451 Initialization
10497 ***********************************************************************/ 10452 ***********************************************************************/