README-SDL.txt
author Sam Lantinga <slouken@libsdl.org>
Sun, 14 Jul 2013 18:17:28 -0700
changeset 7523 9e9ab1dc3811
parent 7222 2435b221d77d
child 9507 b1e690e9c5b3
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.
slouken@7222
     1
slouken@7222
     2
Please distribute this file with the SDL runtime environment:
slouken@7222
     3
slouken@7222
     4
The Simple DirectMedia Layer (SDL for short) is a cross-platform library
slouken@7222
     5
designed to make it easy to write multi-media software, such as games and
slouken@7222
     6
emulators.
slouken@7222
     7
slouken@7222
     8
The Simple DirectMedia Layer library source code is available from:
slouken@7222
     9
http://www.libsdl.org/
slouken@7222
    10
slouken@7222
    11
This library is distributed under the terms of the zlib license:
slouken@7222
    12
http://www.zlib.net/zlib_license.html
slouken@7222
    13