Subversion Repositories Kolibri OS

Rev

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

Rev 6108 Rev 6189
Line 246... Line 246...
246
		jmp @f
246
		jmp @f
247
	.else: ;if (width != 256 || height != 256)
247
	.else: ;if (width != 256 || height != 256)
248
		stdcall gl_malloc, 256*256*3
248
		stdcall gl_malloc, 256*256*3
249
		mov [pixels1],eax ;pixels1 = gl_malloc(256 * 256 * 3)
249
		mov [pixels1],eax ;pixels1 = gl_malloc(256 * 256 * 3)
250
		; no interpolation is done here to respect the original image aliasing !
250
		; no interpolation is done here to respect the original image aliasing !
251
;gl_resizeImageNoInterpolate(eax,256,256,[edi+36],edx,esi)
251
		stdcall gl_resizeImage, eax,256,256,[edi+36],edx,esi
252
		mov dword[do_free],1
252
		mov dword[do_free],1
253
		mov edx,256
253
		mov edx,256
254
		mov esi,256
254
		mov esi,256
255
	@@:
255
	@@:
Line 287... Line 287...
287
	or eax,eax ;if(im.pixmap)
287
	or eax,eax ;if(im.pixmap)
288
	jz @f
288
	jz @f
289
;gl_convertRGB_to_8A8R8G8B(eax,[pixels1],ebx,esi)
289
;gl_convertRGB_to_8A8R8G8B(eax,[pixels1],ebx,esi)
290
	@@:
290
	@@:
291
end if
291
end if
292
if TGL_FEATURE_RENDER_BITS eq 16
-
 
293
	mov ebx,edx
-
 
294
	imul edx,esi
-
 
295
	shl edx,1
-
 
296
	stdcall gl_malloc,edx
-
 
297
	mov [ecx+offs_imag_pixmap],eax ;im.pixmap = gl_malloc(width*height*2)
-
 
298
	or eax,eax ;if(im.pixmap)
-
 
299
	jz @f
-
 
300
;gl_convertRGB_to_5R6G5B(eax,[pixels1],ebx,esi)
-
 
301
	@@:
-
 
302
end if
-
 
303
	cmp dword[do_free],0 ;if (do_free)
292
	cmp dword[do_free],0 ;if (do_free)
304
	je @f
293
	je @f
305
		stdcall gl_free, [pixels1]
294
		stdcall gl_free, [pixels1]
306
	@@:
295
	@@:
307
popad
296
popad