1,6 → 1,6 |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
;; ;; |
;; Copyright (C) KolibriOS team 2004-2011. All rights reserved. ;; |
;; Copyright (C) KolibriOS team 2004-2017. All rights reserved. ;; |
;; Distributed under terms of the GNU General Public License ;; |
;; ;; |
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;; |
100,25 → 100,25 |
{ |
local w,h,a,r,g,b |
virtual at 0 |
_file equ _#_name |
_file:: |
file _fname |
load w dword from _bmp.i.biWidth |
load h dword from _bmp.i.biHeight |
end virtual |
load w dword from _file:_bmp.i.biWidth |
load h dword from _file:_bmp.i.biHeight |
load hsize dword from _file:_bmp.h.bfOffBits |
align 4 |
label _name |
.width = w |
.height = h |
dd w,h |
a=54+(w*3+(w mod 4))*(h-1) |
a=hsize+(w*3+(w mod 4))*(h-1) |
size = $ |
repeat h |
repeat w |
virtual at 0 |
file _fname |
load r from a+0 |
load g from a+1 |
load b from a+2 |
end virtual |
load r from _file:a+0 |
load g from _file:a+1 |
load b from _file:a+2 |
db r,g,b |
a=a+3 |
end repeat |
141,7 → 141,7 |
macro SKIN_PARAMS [a] |
{ |
common |
local _height,_margins,_colors,_colors_1,_dtp,_dtp_sz |
local _height,_margins,_colors,_colors_1,_dtp |
__params__: |
forward |
match qq == ww,a |
173,12 → 173,9 |
dd _height |
dw _margins |
dd _colors,_colors_1 |
virtual at 0 |
dd @f - $ - 4 |
file _dtp |
_dtp_sz = $ |
end virtual |
dd _dtp_sz |
file _dtp |
@@: |
} |
|
macro SKIN_BUTTONS [a] |