aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2014-01-17 22:48:06 +0000
committerDavid Robillard <d@drobilla.net>2014-01-17 22:48:06 +0000
commit064a36209d6ee39054e751d597633c8d35a50199 (patch)
tree0754511f2648b84af5a356e83d171b0cf32e69ea
parent12898ecf40723adb674bad95c10d1e8092794297 (diff)
downloadpugl-064a36209d6ee39054e751d597633c8d35a50199.tar.gz
pugl-064a36209d6ee39054e751d597633c8d35a50199.tar.bz2
pugl-064a36209d6ee39054e751d597633c8d35a50199.zip
Fix whitespace and junk comment.
-rw-r--r--pugl/pugl.h10
-rw-r--r--pugl/pugl_win.cpp6
2 files changed, 8 insertions, 8 deletions
diff --git a/pugl/pugl.h b/pugl/pugl.h
index 8d82016..2a6a59f 100644
--- a/pugl/pugl.h
+++ b/pugl/pugl.h
@@ -95,7 +95,7 @@ typedef enum {
PUGL_CHAR_ESCAPE = 0x1B,
PUGL_CHAR_DELETE = 0x7F
} PuglChar;
-
+
/**
Special (non-Unicode) keyboard keys.
*/
@@ -131,12 +131,12 @@ typedef enum {
Keyboard modifier flags.
*/
typedef enum {
- PUGL_MOD_SHIFT = 1, /**< Shift key */
+ PUGL_MOD_SHIFT = 1, /**< Shift key */
PUGL_MOD_CTRL = 1 << 1, /**< Control key */
PUGL_MOD_ALT = 1 << 2, /**< Alt/Option key */
PUGL_MOD_SUPER = 1 << 3 /**< Mod4/Command/Windows key */
} PuglMod;
-
+
/**
Handle for opaque user data.
*/
@@ -208,8 +208,8 @@ typedef void (*PuglScrollFunc)(PuglView* view,
/**
A function called when a special key is pressed or released.
- This callback allows the use of keys that do not have unicode points. Note
- that some non-printable keys
+ This callback allows the use of keys that do not have unicode points.
+
@param view The view the event occured in.
@param press True if the key was pressed, false if released.
@param key The key pressed.
diff --git a/pugl/pugl_win.cpp b/pugl/pugl_win.cpp
index c95a2d2..dbe0649 100644
--- a/pugl/pugl_win.cpp
+++ b/pugl/pugl_win.cpp
@@ -106,7 +106,7 @@ puglCreate(PuglNativeWindow parent,
free(view);
return NULL;
}
-
+
SetWindowLongPtr(impl->hwnd, GWL_USERDATA, (LONG)view);
impl->hdc = GetDC(impl->hwnd);
@@ -219,7 +219,7 @@ processMouseEvent(PuglView* view, int button, bool press, LPARAM lParam)
} else {
ReleaseCapture();
}
-
+
if (view->mouseFunc) {
view->mouseFunc(view, button, press,
GET_X_LPARAM(lParam),
@@ -249,7 +249,7 @@ handleMessage(PuglView* view, UINT message, WPARAM wParam, LPARAM lParam)
case WM_CREATE:
case WM_SHOWWINDOW:
case WM_SIZE:
- RECT rect;
+ RECT rect;
GetClientRect(view->impl->hwnd, &rect);
puglReshape(view, rect.right, rect.bottom);
view->width = rect.right;