[Vala] SDL Sample not compiling correctly



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]