From abbc5041e52ed516b8b395e8d48b59cbf9ad99bf Mon Sep 17 00:00:00 2001 From: Patrick Desaulniers Date: Wed, 1 May 2019 18:18:30 -0400 Subject: [PATCH] Use regular int for keyboardDeltaWidth --- examples/MidiKeyboard/MidiKeyboardExampleUI.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/MidiKeyboard/MidiKeyboardExampleUI.cpp b/examples/MidiKeyboard/MidiKeyboardExampleUI.cpp index e17b58ab..c61385ef 100644 --- a/examples/MidiKeyboard/MidiKeyboardExampleUI.cpp +++ b/examples/MidiKeyboard/MidiKeyboardExampleUI.cpp @@ -32,7 +32,7 @@ public: : UI(kUIWidth, kUIHeight), fKeyboardWidget(getParentWindow()) { - const uint keyboardDeltaWidth = kUIWidth - fKeyboardWidget.getWidth(); + const int keyboardDeltaWidth = kUIWidth - fKeyboardWidget.getWidth(); fKeyboardWidget.setAbsoluteX(keyboardDeltaWidth / 2); fKeyboardWidget.setAbsoluteY(kUIHeight - fKeyboardWidget.getHeight() - 4);