Fix some confusing code noticed by unknown, typo fix

This commit is contained in:
Henrik Rydgård committed 2013-07-20 09:43:55 +02:00
1 parent 60dcf8fae9
commit 13b8277bd3
2 files changed
+5 -4

No files matched your search

+1 -1
View File
@@ -188,7 +188,7 @@ extern "C" void Java_com_henrikrydgard_libnative_NativeApp_audioInit(JNIEnv *, j
optimalSampleRate = 44100;
AndroidAudio_Init(&NativeMix, library_path, optimalFramesPerBuffer, optimalSampleRate);
}
ILOG("NativeApp.audioShutdown() -- end");
ILOG("NativeApp.audioInit() -- end");
}
extern "C" void Java_com_henrikrydgard_libnative_NativeApp_audioShutdown(JNIEnv *, jclass) {
+4 -3
View File
@@ -730,9 +730,10 @@ EventReturn ChoiceStrip::OnChoiceClick(EventParams &e) {
}
EventParams e2;
e.a = selected_;
e2.v = views_[selected_];
e2.a = selected_;
// Dispatch immediately (we're already on the UI thread as we're in an event handler).
return OnChoice.Dispatch(e);
return OnChoice.Dispatch(e2);
}
void ChoiceStrip::SetSelection(int sel) {
@@ -834,4 +835,4 @@ void UpdateViewHierarchy(const InputState &input_state, ViewGroup *root) {
root->Update(input_state);
DispatchEvents();
}
} // namespace UI
} // namespace UI