Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(287)

Unified Diff: src/views/win/SkOSWindow_win.cpp

Issue 1722703003: Move SkUtils.h to src/core. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/core/SkUtils.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/views/win/SkOSWindow_win.cpp
diff --git a/src/views/win/SkOSWindow_win.cpp b/src/views/win/SkOSWindow_win.cpp
index 4b7abb1e96686cbb510b7282c7b83eccdbb65cc7..c451708cef0c4a80bf3306cecfc304f763c72fe3 100644
--- a/src/views/win/SkOSWindow_win.cpp
+++ b/src/views/win/SkOSWindow_win.cpp
@@ -147,7 +147,8 @@ bool SkOSWindow::wndProc(HWND hWnd, UINT message, WPARAM wParam, LPARAM lParam)
this->handleChar((SkUnichar) wParam);
return true;
case WM_CHAR: {
- this->handleChar(SkUTF8_ToUnichar((char*)&wParam));
+ const uint16_t* c = reinterpret_cast<uint16_t*>(&wParam);
+ this->handleChar(SkUTF16_NextUnichar(&c));
return true;
} break;
case WM_SIZE: {
« no previous file with comments | « src/core/SkUtils.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698