diff dw.h @ 2114:251d050d306b

Change dw_notification_new() to take an image path instead of an in-memory HPIXMAP. After examining all the platforms, several require the image to be on disk. It is easier to specify the path and load it on platforms requiring it in memory than to save it to disk on platforms that require it on disk. Currently it does not automatically pick an extension like some other functions, may need to add that feature here too soon. Only tested on Windows in this commit.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 23 Jun 2020 07:48:29 +0000
parents 10c22853b479
children 663467f6eee4
line wrap: on
line diff
--- a/dw.h	Mon Jun 22 04:44:47 2020 +0000
+++ b/dw.h	Tue Jun 23 07:48:29 2020 +0000
@@ -1857,7 +1857,7 @@
 HPRINT API dw_print_new(const char *jobname, unsigned long flags, unsigned int pages, void *drawfunc, void *drawdata);
 int API dw_print_run(HPRINT print, unsigned long flags);
 void API dw_print_cancel(HPRINT print);
-HWND API dw_notification_new(const char *title, HPIXMAP pixmap, const char *description, ...);
+HWND API dw_notification_new(const char *title, const char *imagepath, const char *description, ...);
 int API dw_notification_send(HWND notification);
 wchar_t * API dw_utf8_to_wchar(const char *utf8string);
 char * API dw_wchar_to_utf8(const wchar_t *wstring);