Subversion Repositories Kolibri OS

Rev

Blame | Last modification | View Log | Download | RSS feed

  1. ;---------------------------------------------------------------------
  2. convert_icons:
  3.         xor     eax,eax
  4.         mov     [return_code],eax
  5.  
  6.         push    image_file
  7.         call    [cnv_png_import.Start]
  8.  
  9.         mov     ecx,[image_file]
  10.         mcall   68,13,
  11.         test    eax,eax
  12.         jz      memory_free_error
  13.  
  14.         cmp     [return_code],dword 0
  15.         je      @f
  16.         mov     [N_error],6
  17.         jmp     button.exit
  18. @@:
  19.  
  20. ;       mov     ebx,[raw_pointer]
  21. ;       mov     eax,[ebx+4]
  22. ; set of icon size x
  23. ;       mov     [file_browser_data_1.icon_size_x],ax
  24. ; mov eax,[ebx+8]
  25. ; set of icon size y
  26. ;       mov     [file_browser_data_1.icon_size_y],ax
  27. ;       inc     ax
  28. ;       mov     [file_browser_data_1.line_size_y],ax
  29. ;       mov     eax,[ebx+12]
  30. ; set of RAW resolution to pixel
  31. ;       mov     [file_browser_data_1.resolution_raw],eax
  32.  
  33. ;       mov     eax,[ebx+20]
  34. ;       add     eax,ebx
  35. ; set RAW palette,use else resolution 8bit or less
  36. ;       mov     [file_browser_data_1.palette_raw],eax
  37.  
  38. ;       mov     eax,[ebx+28]
  39. ;       add     eax,ebx
  40. ; set RAW area for icon
  41. ;       mov     [file_browser_data_1.icon_raw_area],eax
  42.         ret
  43. ;---------------------------------------------------------------------
  44.