Re: [Vala] SDL Sample not compiling correctly



On Sun, Oct 16, 2011 at 1:26 PM, Simon Werbeck <simon werbeck googlemail com
wrote:

Hi,

I tried compiling the SDL Sample from http://live.gnome.org/Vala/**
SDLSample <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.


Hi, you can report bugs  to bugzilla.gnome.org .

-- 
www.debian.org - The Universal Operating System


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]