* Add support for drag and drop of a picture into grafx2 windows

WARNING : it will not ask to save changes before. I believe it should work like the fileselector but could not find where to plug it there...

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1548 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Adrien Destugues
2010-08-02 10:21:59 +00:00
parent 378555d943
commit aaef37bd40
2 changed files with 66 additions and 0 deletions

View File

@@ -85,6 +85,15 @@
extern DECLSPEC int SDLCALL SDL_putenv(const char *variable);
#endif
int test_colorcycling(void* useless)
{
byte r = 0;
while(1) {
SDL_Delay(50);
Set_color(0,++r,0,0);
}
}
//--- Affichage de la syntaxe, et de la liste des modes vidéos disponibles ---
void Display_syntax(void)
{
@@ -818,6 +827,16 @@ int Init_program(int argc,char * argv[])
break;
}
}
#if 0
// Color cycling test
{
SDL_Thread* t = SDL_CreateThread(test_colorcycling, NULL);
}
#endif
AcceptDND();
return(1);
}