danny | 1 Oct 09:08 2009
Picon

Re: Borland and Watcom support for SDL 1.3?

Sam Lantinga ha scritto:
> Is anybody interested in maintaining the Borland and Watcom projects
> for SDL 1.3?
> 
	
	I filled some bugs (#814, #815, #816 & #817) and updated the watcom.zip 
file (#818) to compile the SDL 1.3 library with Open Watcom 1.8

	Maybe is better (and easier to mantain) to put the watcom directory 
directory under SVN control: there are only two text files.

	Thanks

		Daniele Forghieri
foursoftware | 1 Oct 09:52 2009

Re: SDL_ttf rendering

Hello,
I'd like to render on the screen YUV image and font simultaneously but in my FOR(; I use SDL_DIsplayYUVOverlay() and SDL_BlitSurface() all functions that performe render on the screen so I got blinking due to double refresh every FPS delay.
I have to call SDL_DIsplayYUVOverlay to render image and I need to call SDL_BlitSurface to display text. Is there any workaround that allow me to refresh video screen only after I really got YUV and text components ready?

Thanks







Jonny D wrote:
Ooh, except that I don't fully understand your loop there.

Jonny D


On Wed, Sep 30, 2009 at 4:24 PM, Jonathan Dearborn wrote:







Quote:
Yep, a decent place would be right after your call to SDL_BlitSurface:
SDL_Flip(screen);

Jonny D


On Wed, Sep 30, 2009 at 2:39 PM, Torsten Giebl wrote:







Quote:
Hello !









Quote:
I don't know where SDL call SDL_Flip internally ... this is my code


You have to call SDL_Flip in your code manually,
as SDL can not guess when you are finished with your
actual frame updates.


CU
_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org


_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Sam Lantinga | 1 Oct 10:31 2009

Re: SDL_ttf rendering








foursoftware wrote:
Hello,
I'd like to render on the screen YUV image and font simultaneously but in my FOR(; I use SDL_DIsplayYUVOverlay() and SDL_BlitSurface() all functions that performe render on the screen so I got blinking due to double refresh every FPS delay.
I have to call SDL_DIsplayYUVOverlay to render image and I need to call SDL_BlitSurface to display text. Is there any workaround that allow me to refresh video screen only after I really got YUV and text components ready?


No, the only way to really do that is to do the YUV and RGB rendering into an offscreen buffer and blit the combined image to the screen.
_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Chris Herborth | 1 Oct 17:20 2009
Picon

XCode templates

I've got the latest trunk (4898) from SVN, but I'm not seeing any of the 
Xcode templates except the ones in the TemplatesForXcodeTiger/ 
directory.  The TemplatesForXcodeLeopard/ and 
TemplatesForXcodeSnowLeopard/ directories are empty.

Do I need to pull a specific tag to get these?  And are the templates 
the same for 1.2 and 1.3?

Thanks!

--

-- 
Chris Herborth (chrish <at> pobox.com) -- http://www.pobox.com/~chrish/
Marooned, the survival game! -- http://marooned-game.livejournal.com/
Never send a monster to do the work of an evil scientist.

Attachment (chrish.vcf): text/x-vcard, 523 bytes
_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
katz | 1 Oct 12:07 2009
Picon

Re: SDL 1.3 development libraries for MinGW

It seems that function is not exported by default. I had to take away the comment on line 82 of SDL_config_win32.h
http://www.mediafire.com/download.php?n3uo2ztnnhn
Keep in mind that it's a development build, so it should have some big bugs.
_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
Sam Lantinga | 1 Oct 17:53 2009

Re: XCode templates

I just added these to subversion.  You can get them in the latest snapshot:
http://www.libsdl.org/tmp/SDL-1.3.zip

The templates are different between SDL 1.2 and 1.3. :)

On Thu, Oct 1, 2009 at 8:20 AM, Chris Herborth <chrish <at> pobox.com> wrote:
> I've got the latest trunk (4898) from SVN, but I'm not seeing any of the
> Xcode templates except the ones in the TemplatesForXcodeTiger/ directory.
>  The TemplatesForXcodeLeopard/ and TemplatesForXcodeSnowLeopard/ directories
> are empty.
>
> Do I need to pull a specific tag to get these?  And are the templates the
> same for 1.2 and 1.3?
>
> Thanks!
>
> --
> Chris Herborth (chrish <at> pobox.com) -- http://www.pobox.com/~chrish/
> Marooned, the survival game! -- http://marooned-game.livejournal.com/
> Never send a monster to do the work of an evil scientist.
>
>
> _______________________________________________
> SDL mailing list
> SDL <at> lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>
>

--

-- 
	-Sam Lantinga, Founder and President, Galaxy Gameworks LLC
Adam Strzelecki | 2 Oct 00:07 2009
Picon

SDL_ttf outline font rendering patch [RFC]

Hello,

I am working on surveillance video player project. Since I needed font  
outlining I had to extend SDL_ttf functionality with ability of using  
FreeType's FT_Glyph_Stroke to create outlined rendering for overlay  
text (white text with black outline).

Attaching patch for SDL_ttf SVN. (below)

Here's some screenshot of rendering:
http://www.nanoant.com/screenshots/sdl/SDL_ttf-outline-patch.png

... with following function:

	TTF_SetFontOutline(font_outline, 2);
(...)
	SDL_Color white = {0xFF, 0xFF, 0xFF};
	SDL_Color black = {0x00, 0x00, 0x00};
	SDL_Surface *black_text_surface = TTF_RenderText_Blended 
(font_outline, text, black);
	SDL_Surface *white_text_surface = TTF_RenderText_Blended(font, text,  
white);
	SDL_TextureID black_text = SDL_CreateTextureFromSurface(0,  
black_text_surface);
	SDL_TextureID white_text = SDL_CreateTextureFromSurface(0,  
white_text_surface);
	SDL_Rect black_rect = {x, y, black_text_surface->w,  
black_text_surface->h};
	SDL_Rect white_rect = {x + 2, y + 2, white_text_surface->w,  
white_text_surface->h};
	SDL_RenderCopy(black_text, NULL, &black_rect);
	SDL_RenderCopy(white_text, NULL, &white_rect);
	SDL_FreeSurface(black_text_surface); SDL_FreeSurface 
(white_text_surface);
	SDL_DestroyTexture(black_text); SDL_DestroyTexture(white_text);

... where font & font_outline are same TTF and size, but the second  
has TTF_SetFontOutline set.

Hope it can find a way into SVN,

Waiting for comments,
--

-- 
Adam Strzelecki | nanoant.com

Attachment (SDL_ttf-font-outline.patch): application/octet-stream, 7182 bytes
_______________________________________________
SDL mailing list
SDL <at> lists.libsdl.org
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
fungos | 2 Oct 04:18 2009
Picon

Re: SDL causing BSODs on Vista

Christoph, I can test your samples on some Vistas here. When I get
some time I can try to write a minimum crashing sample. About the open
questions:

1 - Does the Compiler matter? (Exe, libs, options, version)
 - I think yes, the compiler have a big role in this problem - but I'm
not sure, I just would give greater attention to this item.
2- Does the compiling OS matter? (Someone claimed GCC: XP-> Vista bad,
Vista->Vista good)
 - I don't think so, but what I can remember is that Vista->Vista has
a lower crashing rate than XP->Vista.
3- Does target OS/Service Pack/DirectX matter?
 - I don't think so, but a Service Pack may fix the problem. My app
was not using DirectX, only OpenGL. I had not tested with pure sdl. :(
4- Are there bad driver/GPUs?
 - Maybe, but I think it's binary loader related, not a driver problem.
5- Are there applications which had the same problem and got it fixed
(TuxPaint?)
 - I remember finding some bug reports on other SDL software with the
same problem, including TuxPaint.

Please, anybody here that already saw the same problem, can add new
information to this thread?
I'm willing to research and give more information about this problem,
but I need finish some work first, If anybody wan't we can talk on
IRC/gtalk/msn to try do some "real-time" testing soon.

Thank you and sorry about the delay to reply the messages, we're
deadline right now.

On Wed, Sep 30, 2009 at 6:22 PM, Christoph Nelles
<evilazrael <at> evilazrael.de> wrote:
> -----BEGIN PGP SIGNED MESSAGE-----
> Hash: SHA1
>
> Hiho,
>
> Torsten Giebl schrieb:
>> Hello !
>>> Christoph Nelles wrote some tests
>>> (http://libgame.evilazrael.net/files/testcase.7z) that I ran here and
>>> both of them crashed my Vistas.
>>>
>>> How long will people still use Vista, this is insane! :(
>> The people here, really would like to help you, but
>> there is no sourcecode available that shows the BSOD or is it ?
>>
>> The link in the older message does not work anymore.
>>
>> If there is an example source that crashes on some systems, people
>> can investigate, why, how and when.
>
>
> I found a site of a programmer who claimed to have fixed the problem by
> stripping the exe file, so i stripped even a -g0 compiled exe. At that
> time i personally had no access to Vista PCs where my program crashed.
> Two friends of me tried the programs (relunctantly, who likes to crash
> his PC?). While the unstripped versions crashed them 100%, the stripped
> one crashed them rather undeterministic. But still they crashed. BTW The
> one is an Intel+Radeon system, so it's not nVidia specific.
>
> Earlier I debugged my program on the vista notebook of my brother's
> girlfriend. I think this system was virus-infested. The program crashed
> the system all the time, except when run in gdb.. Nice Heisenbug
> (timing??) ;) But the notebook got reinstalled and stopped showing this
> behavior.
>
> At https://evilazrael.net/repos/libgame/trunk/ you can get the source
> code if you really want it, but i think it's to much to check.
>
> If i get time this weekend, i will try the mess with VC++ and try to get
> some guinea pigs.
>
> Open questions from this the and the earlier discussion
> - - Does the Compiler matter? (Exe, libs, options, version)
> - - Does the compiling OS matter? (Someone claimed GCC: XP-> Vista bad,
> Vista->Vista good)
> - - Does target OS/Service Pack/DirectX matter?
> - - Are there bad driver/GPUs?
> - - Are there applications which had the same problem and got it fixed
> (TuxPaint?)
>
> Any comments?
>
> - --
> Christoph Nelles
>
> E-Mail    : evilazrael <at> evilazrael.de
> Jabber    : eazrael <at> evilazrael.net      ICQ       : 78819723
>
> PGP-Key   : ID 0x424FB55B on subkeys.pgp.net
>            or http://evilazrael.net/pgp.txt
>
> -----BEGIN PGP SIGNATURE-----
> Version: GnuPG v1.4.9 (MingW32)
> Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/
>
> iEYEARECAAYFAkrDzB0ACgkQBcR1PkJPtVsfawCgs4K3T513R+XjdifJHCfSyQ9v
> g9EAoKZhdcqoVrkRIpm30MJuTHz2o9XB
> =vt3X
> -----END PGP SIGNATURE-----
> _______________________________________________
> SDL mailing list
> SDL <at> lists.libsdl.org
> http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org
>

--

-- 
Animal Liberation Front
http://www.animal-liberation.com/
Luke J Crook | 2 Oct 06:25 2009

Loss of SDL_ActiveEvent in Win32, but not in Linux


On Win32 it seems that SDL_ActiveEvents are no longer received after a 
SDL_QuitEvent is placed on the event using SDL_PushEvent().

After the SDL_QuitEvent is received and the Window closed (SDL_Quit), then a 
new Window is opened (SDL_Init/SDl_SetVideoMode) and events are again received 
(key down events, mouse events etc.) however the system will not place more 
SDL_ActiveEvents on the event queue.

This does not occur if the Window is closed by clicking on the Window close 
icon. Nor does this occur in Linux.

Has anyone experienced this behavior?

I'm using SDL from Lisp, so the SDL library is loaded when the Lisp environment 
is started and never unloaded. I'm sure this has something to do with it, but 
it does not explain why this only happens in Windows.

- Luke
E. Wing | 2 Oct 10:15 2009
Picon

Re: SDL 1.2 and OS X 10.6

Very elaborate (pre)release notes for SDL 1.2.14 / Mac OS X posted here:
http://playcontrol.net/ewing/jibberjabber/big_behind-the-scenes_chang.html

-Eric

Gmane