Page 2 of 2 FirstFirst 12
Results 11 to 16 of 16

Thread: When i move sdl window the app freeze...

  1. #11

    When i move sdl window the app freeze...

    I get the exact same problem with the code used in my post. The entire Jedi-SDL window is unstable. It cannot be moved.
    --MagicRPG--

  2. #12

    When i move sdl window the app freeze...

    Quote Originally Posted by DarknessX
    I get the exact same problem with the code used in my post. The entire Jedi-SDL window is unstable. It cannot be moved.
    i have solved it, it was a code mistake in mainloop
    From brazil (:

    Pascal pownz!

  3. #13

    When i move sdl window the app freeze...

    Can you post the solution please? I was fairly sure that's where the problem was (I'm only trying to actually draw a map right now) so it didn't matter, but I'd rather not have to experiment to fix it
    --MagicRPG--

  4. #14

    When i move sdl window the app freeze...

    Quote Originally Posted by DarknessX
    Can you post the solution please? I was fairly sure that's where the problem was (I'm only trying to actually draw a map right now) so it didn't matter, but I'd rather not have to experiment to fix it
    Post you main loop, its better

    Im my case the problem was "Wait for next frame" code
    From brazil (:

    Pascal pownz!

  5. #15

    When i move sdl window the app freeze...

    Well my main loop contains no readln or anything, it just displays the graphics over and over again. It doesn't pause or anything... yet.
    --MagicRPG--

  6. #16

    When i move sdl window the app freeze...

    Quote Originally Posted by DarknessX
    Well my main loop contains no readln or anything, it just displays the graphics over and over again. It doesn't pause or anything... yet.
    So try to manage events at begin of main loop
    Code:
    //declare
    event: TSDL_Event; // sdl event
    
    procedure Manageinput;
    begin
      while SDL_PollEvent(@event) > 0 do
           if event.type_ = SDL_QUITEV then
              dosomething;
        end;
    end;
    and also add
    Code:
    SDL_Delay(35);
    to end of main loop
    From brazil (:

    Pascal pownz!

Page 2 of 2 FirstFirst 12

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •