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 get the exact same problem with the code used in my post. The entire Jedi-SDL window is unstable. It cannot be moved.
--MagicRPG--
i have solved it, it was a code mistake in mainloopOriginally Posted by DarknessX
From brazil (:
Pascal pownz!
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--
Post you main loop, its betterOriginally Posted by DarknessX
Im my case the problem was "Wait for next frame" code
From brazil (:
Pascal pownz!
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--
So try to manage events at begin of main loopOriginally Posted by DarknessX
and also addCode://declare event: TSDL_Event; // sdl event procedure Manageinput; begin while SDL_PollEvent(@event) > 0 do if event.type_ = SDL_QUITEV then dosomething; end; end;
to end of main loopCode:SDL_Delay(35);
From brazil (:
Pascal pownz!
Bookmarks