diff options
author | Robin Gareus <robin@gareus.org> | 2014-11-08 20:57:19 +0100 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2014-12-16 18:31:26 -0500 |
commit | 5a28f319f94f4329f750394e037a7df18ce98e73 (patch) | |
tree | 41d44891ce096f1a3a9195999111f6ac2d57a3fe | |
parent | b1086487e4ec33af08c4ba37f9c178b38d598bf8 (diff) |
Ensure unique window class IDs for long titles.
Conflicts:
pugl/pugl_win.cpp
-rw-r--r-- | pugl/pugl_win.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pugl/pugl_win.cpp b/pugl/pugl_win.cpp index 9441549..ad386fb 100644 --- a/pugl/pugl_win.cpp +++ b/pugl/pugl_win.cpp @@ -114,7 +114,7 @@ puglCreateWindow(PuglView* view, const char* title) // Should class be a parameter? Does this make sense on other platforms? static int wc_count = 0; char classNameBuf[256]; - _snprintf(classNameBuf, sizeof(classNameBuf), "%s_%d", title, wc_count++); + _snprintf(classNameBuf, sizeof(classNameBuf), "x%d%s", wc_count++, title); classNameBuf[sizeof(classNameBuf) - 1] = '\0'; impl->wc.style = CS_OWNDC; |