Skip to content
Snippets Groups Projects
Commit 6d6220ed authored by dg's avatar dg
Browse files

game icon tahnks to Shoob

git-svn-id: http://svn.net-core.org/repos/t-engine4@478 51575b47-30f0-44d4-a5cc-537603b46e54
parent 927a50cf
No related branches found
No related tags found
No related merge requests found
game/data/gfx/te4-icon.png

2.78 KiB

......@@ -17,8 +17,8 @@
#include "music.h"
#include "main.h"
#define WIDTH 1024
#define HEIGHT 768
#define WIDTH 800
#define HEIGHT 600
lua_State *L = NULL;
int current_mousehandler = LUA_NOREF;
......@@ -443,6 +443,9 @@ int main(int argc, char *argv[])
printf("cannot initialize SDL: %s\n", SDL_GetError ());
return;
}
SDL_WM_SetIcon(IMG_Load_RW(PHYSFSRWOPS_openRead("/data/gfx/te4-icon.png"), TRUE), NULL);
screen = SDL_SetVideoMode(WIDTH, HEIGHT, 32, SDL_OPENGL | SDL_GL_DOUBLEBUFFER | SDL_HWPALETTE | SDL_HWSURFACE);
if (screen==NULL) {
printf("error opening screen: %s\n", SDL_GetError());
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment