Subversion Repositories Kolibri OS

Rev

Rev 7783 | Rev 7893 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 7783 Rev 7867
Line 192... Line 192...
192
        offy
192
        offy
193
    );  
193
    );  
194
}
194
}
Line 195... Line 195...
195
 
195
 
-
 
196
//NOTICE: DO NOT FORGET TO INIT libio AND libimg!!!
-
 
197
#ifdef LANG_RUS
-
 
198
#define TEXT_FILE_SAVED_AS "'File saved as "
-
 
199
#else
-
 
200
#define TEXT_FILE_SAVED_AS "'” ©« á®åà ­¥­ ª ª "
196
//NOTICE: DO NOT FORGET TO INIT libio AND libimg!!!
201
#endif
197
:void save_image(dword _image_pointer, _w, _h, _path)
202
:void save_image(dword _image_pointer, _w, _h, _path)
198
{
203
{
199
    char save_success_message[4096+200];
204
    char save_success_message[4096+200];
200
    dword encoded_data=0;
205
    dword encoded_data=0;
Line 217... Line 222...
217
        if(encoded_data == 0) {
222
        if(encoded_data == 0) {
218
            notify("'Error saving file, incorrect data!' -E");
223
            notify("'Error saving file, incorrect data!' -E");
219
        }
224
        }
220
        else {
225
        else {
221
            if (CreateFile(encoded_size, encoded_data, _path) == 0) {
226
            if (CreateFile(encoded_size, encoded_data, _path) == 0) {
222
                strcpy(#save_success_message, "'File saved as ");
227
                strcpy(#save_success_message, TEXT_FILE_SAVED_AS);
223
                strcat(#save_success_message, _path);
228
                strcat(#save_success_message, _path);
224
                strcat(#save_success_message, "' -O");
229
                strcat(#save_success_message, "' -O");
225
                notify(#save_success_message);
230
                notify(#save_success_message);
226
            }
231
            }
227
            else {
232
            else {