README.txt
author Sam Lantinga <slouken@libsdl.org>
Sun, 14 Jul 2013 18:17:28 -0700
changeset 7523 9e9ab1dc3811
parent 7359 96ac247b672e
child 7599 bd0c15431dc9
permissions -rw-r--r--
Fixed bug 1919 - Window icon disappears as soon as a renderer is created

Sebastian

Setting a window icon works just fine until a renderer is added to the window.
After adding the renderer the icon disappears.

Reproduce by:
- Take the example code from the wiki: http://wiki.libsdl.org/moin.fcg/SDL_SetWindowIcon

- Add the following two lines after SDL_FreeSurface(surface);
SDL_Delay(1000);
SDL_Renderer* ren = SDL_CreateRenderer(window, -1, SDL_RENDERER_ACCELERATED);

-compile and run

You will see the window icon correctly at first. After the Delay the Icon will disappear.
     1 
     2                          Simple DirectMedia Layer
     3 
     4                                   (SDL)
     5 
     6                                 Version 2.0
     7 
     8 ---
     9 http://www.libsdl.org/
    10 
    11 Simple DirectMedia Layer is a cross-platform development library designed
    12 to provide low level access to audio, keyboard, mouse, joystick, and graphics
    13 hardware via OpenGL and DirectX. It is used by video playback software,
    14 emulators, and popular games including Valve's award winning catalog
    15 and many Humble Bundle games.
    16 
    17 The current version supports Windows, Mac OS X, Linux, iOS, and Android.
    18 The code contains support for other operating systems but those are not
    19 officially supported.
    20 
    21 SDL is written in C, but works with C++ natively, and has bindings to
    22 several other languages, including C#, Python and more in progress.
    23 
    24 This library is distributed under the zlib license, which can be found
    25 in the file "COPYING.txt".
    26 
    27 The best way to learn how to use SDL is to check out the header files in
    28 the "include" subdirectory and the programs in the "test" subdirectory.
    29 The header files and test programs are well commented and always up to date.
    30 More documentation and FAQs are available online at:
    31 	http://wiki.libsdl.org/
    32 
    33 If you need help with the library, or just want to discuss SDL related
    34 issues, you can join the developers mailing list:
    35 	http://www.libsdl.org/mailing-list.php
    36 
    37 Enjoy!
    38 	Sam Lantinga				(slouken@libsdl.org)
    39