Subversion Repositories Kolibri OS

Rev

Rev 5260 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 5260 Rev 5324
Line 263... Line 263...
263
    
263
    
Line 264... Line -...
264
    
-
 
265
 
-
 
266
    void rskos_draw_area(int x, int y, int w, int h, int k_scale, unsigned char *data, unsigned char *scaled_buffer, int image_format) {
-
 
267
 
-
 
268
//        unsigned char *scaled_buffer = malloc(w*k_scale*h*k_scale*3);
-
 
269
 
264
    
Line 270... Line 265...
270
 
265
 
271
//        if (scaled_buffer != NULL) {
266
    void rskos_draw_area(int x, int y, int w, int h, int k_scale, unsigned char *data, unsigned char *scaled_buffer, int image_format) {
272
 
267
 
Line 279... Line 274...
279
                    scaled_buffer[ (i*w*k_scale + j)*3 + 2] = data[ ( (i/k_scale)*w + (j/k_scale) )*4 + 2];
274
                scaled_buffer[ (i*w*k_scale + j)*3 + 2] = data[ ( (i/k_scale)*w + (j/k_scale) )*4 + 2];
280
                };
275
            };
281
            };
276
        };
Line 282... Line 277...
282
 
277
 
283
            kol_paint_image(0, 0, w*k_scale, h*k_scale, scaled_buffer);
-
 
284
//        }
-
 
285
//        else {
-
 
286
//            //kol_paint_image_pal(0, 0, w, h, data, &image_format)
-
 
287
//            h/=4;
-
 
288
//            asm volatile ("int $0x40"::"a"(65), "b"(data), "c"(w*65536+h), "d"(0*65536+0), "D"(0), "S"(24) );
-
 
289
////            asm volatile ("int $0x40"::"a"(7), "c"(w*65536+h), "d"(x*65536+y), "b"(data));
-
 
290
//        };
-
 
291
//        
-
 
292
////        free(image_data);
-
 
293
	
-
 
Line 294... Line 278...
294
 
278
        kol_paint_image(0, 0, w*k_scale, h*k_scale, scaled_buffer);
Line 295... Line 279...
295
 
279