adtools / os4sdl

Automatically exported from code.google.com/p/os4sdl
GNU Lesser General Public License v2.1
2 stars 2 forks source link

Windowed SDL apps gets corrupted #4

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Start ScummVM
2. Alt-Enter to switch to windowed mode
3. Open SGrab
4. Start a Game (it's IMPORTANT that inside the SDL window some animation is 
going on)
5. Make a Grab from the ScummVM window
After the grab has been taken the ScummVM window will be messed up regarding 
it's border a
nd all gadgets within, only the actual ScummVM/game/animation part will stay 
normal.
The whole window can still be dragged (if one catches the now messed 
up/invisible border), clo
sed and switched back to fullscreen, but dragging it around will leave 
artefacts all over the scree
n, which can be erased by dragging another window (i.e. SGrabs window) over 
them.

What version of the product are you using? On what operating system?
SDL1.2.13SVNr11
AmigaOS4.1 update 1

Please provide any additional information below.
Using the example of ScummVM here (SDL app) but i heard on the forums that 
"every" (nearly
?) SDL app/game seems to suffer from it aswell
It "looks" like only the parts that are animated get updated, leading to 
dragging only parts of the
 window (except all non-animated parts including the borders)

Best checked with ScummVM and the freely available "Beneath a Steel Sky" (you 
can grab it a
t http://www.scummvm.org in downloads)

Attached a screenshot (taken with SGrab, heh :-)) from the messed up SDL window

Original issue reported on code.google.com by raziel_n...@web.de on 5 Apr 2010 at 8:03

Attachments:

GoogleCodeExporter commented 9 years ago
Actually scummvm seems statically linked with SDL, so we can test if the latest 
changes has fixed the problem.

Original comment by andrea.palmate@gmail.com on 15 Jul 2010 at 5:58

GoogleCodeExporter commented 9 years ago
@Andrea
We can do tests on Giddy (which dinamicaly linked). Any game have the same 
problems (almost everyone). I already tryed Giddy for now, and yes, the same 
problem as with ScummVM.

Original comment by ka...@yandex.ru on 15 Jul 2010 at 6:36

GoogleCodeExporter commented 9 years ago
@andrea

Whoa? Really?

How do i dynamically link it with SDL (if this is possible)
I thought i have changed everything in the link line to do so, obviously not :-/

Sorry for off-topic

Original comment by raziel_n...@web.de on 15 Jul 2010 at 6:56

GoogleCodeExporter commented 9 years ago
@Raziel
Add -use-dynld for linker, and it will create dinamicaly linked executable for 
you

Original comment by ka...@yandex.ru on 15 Jul 2010 at 7:00

raziel- commented 6 years ago

This doesn't happen anymore.

Not in SDL1 and not in SDL2.

I guess it's save to be closed. I don't know what the reason was, but i'm assuming some bug in the gfx driver (which as been fixed in the meantime) and not in SDL(1/2)