mirror of
https://github.com/taigrr/wails.git
synced 2026-04-02 05:08:54 -07:00
261 korean fonts (#276)
* fix: linting * chore: bump version * fix: unicode text for Windows * fix: re-add webview_set_title
This commit is contained in:
@@ -217,6 +217,21 @@ struct webview_priv
|
||||
va_end(ap);
|
||||
}
|
||||
|
||||
WEBVIEW_API void webview_set_title(struct webview *w, const char *title)
|
||||
{
|
||||
#ifdef UNICODE
|
||||
wchar_t *u16title = webview_to_utf16(title);
|
||||
if (u16title == NULL)
|
||||
{
|
||||
return;
|
||||
}
|
||||
SetWindowText(w->priv.hwnd, u16title);
|
||||
GlobalFree(u16title);
|
||||
#else
|
||||
SetWindowText(w->priv.hwnd, title);
|
||||
#endif
|
||||
}
|
||||
|
||||
static int webview_js_encode(const char *s, char *esc, size_t n)
|
||||
{
|
||||
int r = 1; /* At least one byte for trailing zero */
|
||||
|
||||
Reference in New Issue
Block a user