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.
_______________________________________________
vala-list mailing list
[email protected]
http://mail.gnome.org/mailman/listinfo/vala-list

Reply via email to