Skip to content

Commit

Permalink
Windows icon now appears everywhere it is supposed to.
Browse files Browse the repository at this point in the history
  • Loading branch information
pete-gordon committed Feb 17, 2010
1 parent 3389a7c commit 530391c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions gui.c
Expand Up @@ -36,6 +36,11 @@
#include <proto/dos.h>
#endif

#ifdef WIN32
#include <windows.h>
#define WANT_WMINFO
#endif

#include "system.h"
#include "6502.h"
#include "via.h"
Expand Down Expand Up @@ -1103,6 +1108,8 @@ SDL_bool init_gui( struct machine *oric )
}
need_sdl_quit = SDL_TRUE;

SDL_WM_SetIcon( SDL_LoadBMP( IMAGEPREFIX"winicon.bmp" ), NULL );

screen = SDL_SetVideoMode( 640, 480, 16, fullscreen ? SDL_FULLSCREEN : SDL_SWSURFACE );
if( !screen )
{
Expand Down
Binary file added images/winicon.bmp
Binary file not shown.
Binary file modified winicon.ico
Binary file not shown.

0 comments on commit 530391c

Please sign in to comment.