in ere Dunny, :)

in ere Dunny, :)

Postby polomint » Wed Oct 13, 2010 12:24 pm

Here is the code I am using.. throws an exception on CALL EAX. Note that everything else is fine, it's just the lock_func/unlock_func that is the problem. Thx

Code: Select all
  SDL_VERSION(sdlinfo.Version);
  if ( SDL_GetWMInfo(@sdlinfo) > 0 ) then begin
    //C++ converted code here
    //sdlinfo.X11.lock_func();
    {$ASMMODE intel}
    asm
       pushad
       mov eax, sdlinfo.x11.lock_func
       call eax
       popad
       ret
    end;

    display := sdlinfo.X11.display;
    window := sdlinfo.x11.window;
    XSync(display, false);
    XGetWindowAttributes(display, window, @attributes);
    XTranslateCoordinates(display, window, attributes.root, 0, 0, @hX, @hY, @dummy);

    //sdlinfo.X11.unlock_func();
    {$ASMMODE intel}
    asm
       pushad
       mov eax, sdlinfo.x11.unlock_func
       call eax
       popad
       ret
    end;
  end;
polomint
 
Posts: 20
Joined: Fri Oct 01, 2010 9:55 am

Return to SpecBAS

Who is online

Users browsing this forum: No registered users and 1 guest

cron