[Vala] SDL Sample not compiling correctly
- From: Simon Werbeck <simon werbeck googlemail com>
- To: vala-list gnome org
- Subject: [Vala] SDL Sample not compiling correctly
- Date: Sun, 16 Oct 2011 13:26:13 +0200
Hi,
I tried compiling the SDL Sample from http://live.gnome.org/Vala/SDLSample
Compiling actually works without errors but when running, the
application is not responding to events.
I've already isolated the error, it seems that the code for the
Event.poll() function is not correct:
private void process_events () {
Event event = Event ();
while (Event.poll (event) == 1) {
...
will translate to something like:
while (TRUE) {
SDL_Event _tmp0_;
_tmp0_ = event;
_tmp1_ = SDL_PollEvent (_tmp0);
However, using a pointer for "event" instead works just fine.
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]