Fix an error in previous commit. Zero warnings on Windows too (Mingw, gcc 4.4.1-TDM)

git-svn-id: svn://pulkomandy.tk/GrafX2/trunk@1946 416bcca6-2ee7-4201-b75f-2eb2f807beb1
This commit is contained in:
Yves Rizoud 2012-05-03 22:46:04 +00:00
parent d8bb1e1d55
commit bbd0d0114c
2 changed files with 5 additions and 2 deletions

View File

@ -3456,7 +3456,8 @@ void Save_picture(byte image)
if (confirm)
{
T_Format * format;
old_cursor_shape=Cursor_shape;
Hide_cursor();
Cursor_shape=CURSOR_SHAPE_HOURGLASS;
@ -3464,7 +3465,8 @@ void Save_picture(byte image)
Save_image(&save_context);
if (!File_error && image && !Get_fileformat(save_context.Format)->Palette_only)
format=Get_fileformat(save_context.Format);
if (!File_error && image && !format->Palette_only && (Main_backups->Pages->Nb_layers==1 || format->Supports_layers))
{
Main_image_is_modified=0;
strcpy(Main_backups->Pages->Filename, save_context.File_name);

View File

@ -249,6 +249,7 @@ char* getClipboard()
CloseClipboard();
}
}
return dst;
#elif defined __HAIKU__
return haiku_get_clipboard();
#else