Support different framebuffer formats, add tests
This commit is contained in:
@@ -0,0 +1,15 @@
|
||||
/> umka_boot
|
||||
/> board_get
|
||||
(empty)
|
||||
/> board_put d
|
||||
/> board_get
|
||||
d
|
||||
/> board_get
|
||||
(empty)
|
||||
/>
|
||||
/> board_put h
|
||||
/> board_put i
|
||||
/> board_get -ln
|
||||
hi
|
||||
/>
|
||||
/> board_get -l
|
||||
@@ -0,0 +1,11 @@
|
||||
umka_boot
|
||||
board_get
|
||||
board_put d
|
||||
board_get
|
||||
board_get
|
||||
|
||||
board_put h
|
||||
board_put i
|
||||
board_get -ln
|
||||
|
||||
board_get -l
|
||||
@@ -0,0 +1,117 @@
|
||||
/> umka_set_boot_params --bpp 16
|
||||
/> umka_boot
|
||||
/> set_mouse_pos_screen 40 30
|
||||
/> #disk_add ../img/kolibri.raw rd -c 0
|
||||
/> ramdisk_init ../img/kolibri.raw
|
||||
/rd: sector_size=512, capacity=2880 (1440 kiB), num_partitions=1
|
||||
/rd/1: fs=fat, start=0 (0 B), length=2880 (1440 kiB)
|
||||
/> set_skin /sys/DEFAULT.SKN
|
||||
status: 0
|
||||
/> window_redraw 1
|
||||
/> draw_window 10 300 5 200 0x000088 1 1 1 0 1 4 hello
|
||||
/> set_pixel 0 0 0x0000ff
|
||||
/> set_pixel 1 1 0xff0000
|
||||
/> set_pixel 2 2 0x00ff00
|
||||
/> draw_line 10 510 10 510 0xff0000
|
||||
/> draw_rect 60 20 30 20 0x00ff00
|
||||
/> put_image chess_image.rgb 8 8 5 15
|
||||
/> put_image_palette chess_image.rgb 12 12 5 30 9 0
|
||||
/> write_text 10 70 0xffff00 hello 0 0 0 0 0 5 0
|
||||
/> set_button_style 0
|
||||
/> button 55 40 5 20 0xc0ffee 0xffffff 1 0
|
||||
/> set_button_style 1
|
||||
/> button 100 40 5 20 0xc1ffee 0xffffff 1 0
|
||||
/> display_number 0 10 4 0 0 1234 5 45 0xffff00 1 1 0 0 0x0000ff
|
||||
/> blit_bitmap chess_image.rgba 20 35 8 8 0 0 8 8 0 0 0 1 32
|
||||
/> window_redraw 2
|
||||
/>
|
||||
/> set_window_caption hi_there 0
|
||||
/>
|
||||
/> get_font_smoothing
|
||||
font smoothing: 2 - subpixel
|
||||
/> set_font_smoothing 0
|
||||
/> get_font_smoothing
|
||||
font smoothing: 0 - off
|
||||
/>
|
||||
/> get_window_colors
|
||||
0x00586786 frame
|
||||
0x00fefefe grab
|
||||
0x00c5bdb9 work_3d_dark
|
||||
0x00f2efec work_3d_light
|
||||
0x00333333 grab_text
|
||||
0x00ddd7cf work
|
||||
0x007887a6 work_button
|
||||
0x00fefefe work_button_text
|
||||
0x00000000 work_text
|
||||
0x007e7e7e work_graph
|
||||
/> set_window_colors 0 0 0 0 0 0 0 0 0 0
|
||||
/>
|
||||
/> dump_win_stack 2
|
||||
0: 0
|
||||
1: 1
|
||||
/> dump_win_pos 2
|
||||
0: 0
|
||||
1: 1
|
||||
/> dump_appdata 2
|
||||
app_name: OS
|
||||
except_mask: 0
|
||||
dbg_state: 0
|
||||
cur_dir:
|
||||
draw_bgr_x: 0
|
||||
draw_bgr_y: 0
|
||||
event_mask: 0
|
||||
tid: 2
|
||||
state: 0x0
|
||||
wnd_number: 2
|
||||
terminate_protection: 1
|
||||
keyboard_mode: 0
|
||||
captionEncoding: 0
|
||||
exec_params: (null)
|
||||
wnd_caption:
|
||||
wnd_clientbox (ltwh): 5 24 291 172
|
||||
priority: 0
|
||||
in_schedule: prev (2), next (2)
|
||||
/>
|
||||
/> process_info -1
|
||||
cpu_usage: 0
|
||||
window_stack_position: 2
|
||||
window_stack_value: 2
|
||||
process_name: OS
|
||||
memory_start: 0x00000000
|
||||
used_memory: 4294967295 (0xffffffff)
|
||||
pid: 2
|
||||
box: 10 5 300 200
|
||||
slot_state: 0
|
||||
client_box: 5 24 291 172
|
||||
wnd_state: 0x00
|
||||
/> get_skin_height
|
||||
24
|
||||
/> get_screen_area
|
||||
0 left
|
||||
0 top
|
||||
399 right
|
||||
299 bottom
|
||||
/> set_screen_area 0 20 350 250
|
||||
/> get_screen_area
|
||||
0 left
|
||||
20 top
|
||||
350 right
|
||||
250 bottom
|
||||
/> get_skin_margins
|
||||
6 left
|
||||
5 top
|
||||
65 right
|
||||
3 bottom
|
||||
/>
|
||||
/> get_font_size
|
||||
0px
|
||||
/> set_font_size 16
|
||||
/> get_font_size
|
||||
16px
|
||||
/>
|
||||
/> get_screen_size
|
||||
400x300
|
||||
/>
|
||||
/> scrot 066_#f01_#draw_#draw16bit_all.out.png
|
||||
/>
|
||||
/> disk_del rd
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.0 KiB |
@@ -0,0 +1,53 @@
|
||||
umka_set_boot_params --bpp 16
|
||||
umka_boot
|
||||
set_mouse_pos_screen 40 30
|
||||
#disk_add ../img/kolibri.raw rd -c 0
|
||||
ramdisk_init ../img/kolibri.raw
|
||||
set_skin /sys/DEFAULT.SKN
|
||||
window_redraw 1
|
||||
draw_window 10 300 5 200 0x000088 1 1 1 0 1 4 hello
|
||||
set_pixel 0 0 0x0000ff
|
||||
set_pixel 1 1 0xff0000
|
||||
set_pixel 2 2 0x00ff00
|
||||
draw_line 10 510 10 510 0xff0000
|
||||
draw_rect 60 20 30 20 0x00ff00
|
||||
put_image chess_image.rgb 8 8 5 15
|
||||
put_image_palette chess_image.rgb 12 12 5 30 9 0
|
||||
write_text 10 70 0xffff00 hello 0 0 0 0 0 5 0
|
||||
set_button_style 0
|
||||
button 55 40 5 20 0xc0ffee 0xffffff 1 0
|
||||
set_button_style 1
|
||||
button 100 40 5 20 0xc1ffee 0xffffff 1 0
|
||||
display_number 0 10 4 0 0 1234 5 45 0xffff00 1 1 0 0 0x0000ff
|
||||
blit_bitmap chess_image.rgba 20 35 8 8 0 0 8 8 0 0 0 1 32
|
||||
window_redraw 2
|
||||
|
||||
set_window_caption hi_there 0
|
||||
|
||||
get_font_smoothing
|
||||
set_font_smoothing 0
|
||||
get_font_smoothing
|
||||
|
||||
get_window_colors
|
||||
set_window_colors 0 0 0 0 0 0 0 0 0 0
|
||||
|
||||
dump_win_stack 2
|
||||
dump_win_pos 2
|
||||
dump_appdata 2
|
||||
|
||||
process_info -1
|
||||
get_skin_height
|
||||
get_screen_area
|
||||
set_screen_area 0 20 350 250
|
||||
get_screen_area
|
||||
get_skin_margins
|
||||
|
||||
get_font_size
|
||||
set_font_size 16
|
||||
get_font_size
|
||||
|
||||
get_screen_size
|
||||
|
||||
scrot 066_#f01_#draw_#draw16bit_all.out.png
|
||||
|
||||
disk_del rd
|
||||
@@ -0,0 +1,117 @@
|
||||
/> umka_set_boot_params --bpp 24
|
||||
/> umka_boot
|
||||
/> set_mouse_pos_screen 40 30
|
||||
/> #disk_add ../img/kolibri.raw rd -c 0
|
||||
/> ramdisk_init ../img/kolibri.raw
|
||||
/rd: sector_size=512, capacity=2880 (1440 kiB), num_partitions=1
|
||||
/rd/1: fs=fat, start=0 (0 B), length=2880 (1440 kiB)
|
||||
/> set_skin /sys/DEFAULT.SKN
|
||||
status: 0
|
||||
/> window_redraw 1
|
||||
/> draw_window 10 300 5 200 0x000088 1 1 1 0 1 4 hello
|
||||
/> set_pixel 0 0 0x0000ff
|
||||
/> set_pixel 1 1 0xff0000
|
||||
/> set_pixel 2 2 0x00ff00
|
||||
/> draw_line 10 510 10 510 0xff0000
|
||||
/> draw_rect 60 20 30 20 0x00ff00
|
||||
/> put_image chess_image.rgb 8 8 5 15
|
||||
/> put_image_palette chess_image.rgb 12 12 5 30 9 0
|
||||
/> write_text 10 70 0xffff00 hello 0 0 0 0 0 5 0
|
||||
/> set_button_style 0
|
||||
/> button 55 40 5 20 0xc0ffee 0xffffff 1 0
|
||||
/> set_button_style 1
|
||||
/> button 100 40 5 20 0xc1ffee 0xffffff 1 0
|
||||
/> display_number 0 10 4 0 0 1234 5 45 0xffff00 1 1 0 0 0x0000ff
|
||||
/> blit_bitmap chess_image.rgba 20 35 8 8 0 0 8 8 0 0 0 1 32
|
||||
/> window_redraw 2
|
||||
/>
|
||||
/> set_window_caption hi_there 0
|
||||
/>
|
||||
/> get_font_smoothing
|
||||
font smoothing: 2 - subpixel
|
||||
/> set_font_smoothing 0
|
||||
/> get_font_smoothing
|
||||
font smoothing: 0 - off
|
||||
/>
|
||||
/> get_window_colors
|
||||
0x00586786 frame
|
||||
0x00fefefe grab
|
||||
0x00c5bdb9 work_3d_dark
|
||||
0x00f2efec work_3d_light
|
||||
0x00333333 grab_text
|
||||
0x00ddd7cf work
|
||||
0x007887a6 work_button
|
||||
0x00fefefe work_button_text
|
||||
0x00000000 work_text
|
||||
0x007e7e7e work_graph
|
||||
/> set_window_colors 0 0 0 0 0 0 0 0 0 0
|
||||
/>
|
||||
/> dump_win_stack 2
|
||||
0: 0
|
||||
1: 1
|
||||
/> dump_win_pos 2
|
||||
0: 0
|
||||
1: 1
|
||||
/> dump_appdata 2
|
||||
app_name: OS
|
||||
except_mask: 0
|
||||
dbg_state: 0
|
||||
cur_dir:
|
||||
draw_bgr_x: 0
|
||||
draw_bgr_y: 0
|
||||
event_mask: 0
|
||||
tid: 2
|
||||
state: 0x0
|
||||
wnd_number: 2
|
||||
terminate_protection: 1
|
||||
keyboard_mode: 0
|
||||
captionEncoding: 0
|
||||
exec_params: (null)
|
||||
wnd_caption:
|
||||
wnd_clientbox (ltwh): 5 24 291 172
|
||||
priority: 0
|
||||
in_schedule: prev (2), next (2)
|
||||
/>
|
||||
/> process_info -1
|
||||
cpu_usage: 0
|
||||
window_stack_position: 2
|
||||
window_stack_value: 2
|
||||
process_name: OS
|
||||
memory_start: 0x00000000
|
||||
used_memory: 4294967295 (0xffffffff)
|
||||
pid: 2
|
||||
box: 10 5 300 200
|
||||
slot_state: 0
|
||||
client_box: 5 24 291 172
|
||||
wnd_state: 0x00
|
||||
/> get_skin_height
|
||||
24
|
||||
/> get_screen_area
|
||||
0 left
|
||||
0 top
|
||||
399 right
|
||||
299 bottom
|
||||
/> set_screen_area 0 20 350 250
|
||||
/> get_screen_area
|
||||
0 left
|
||||
20 top
|
||||
350 right
|
||||
250 bottom
|
||||
/> get_skin_margins
|
||||
6 left
|
||||
5 top
|
||||
65 right
|
||||
3 bottom
|
||||
/>
|
||||
/> get_font_size
|
||||
0px
|
||||
/> set_font_size 16
|
||||
/> get_font_size
|
||||
16px
|
||||
/>
|
||||
/> get_screen_size
|
||||
400x300
|
||||
/>
|
||||
/> scrot 067_#f01_#draw_#draw24bit_all.out.png
|
||||
/>
|
||||
/> disk_del rd
|
||||
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
@@ -0,0 +1,53 @@
|
||||
umka_set_boot_params --bpp 24
|
||||
umka_boot
|
||||
set_mouse_pos_screen 40 30
|
||||
#disk_add ../img/kolibri.raw rd -c 0
|
||||
ramdisk_init ../img/kolibri.raw
|
||||
set_skin /sys/DEFAULT.SKN
|
||||
window_redraw 1
|
||||
draw_window 10 300 5 200 0x000088 1 1 1 0 1 4 hello
|
||||
set_pixel 0 0 0x0000ff
|
||||
set_pixel 1 1 0xff0000
|
||||
set_pixel 2 2 0x00ff00
|
||||
draw_line 10 510 10 510 0xff0000
|
||||
draw_rect 60 20 30 20 0x00ff00
|
||||
put_image chess_image.rgb 8 8 5 15
|
||||
put_image_palette chess_image.rgb 12 12 5 30 9 0
|
||||
write_text 10 70 0xffff00 hello 0 0 0 0 0 5 0
|
||||
set_button_style 0
|
||||
button 55 40 5 20 0xc0ffee 0xffffff 1 0
|
||||
set_button_style 1
|
||||
button 100 40 5 20 0xc1ffee 0xffffff 1 0
|
||||
display_number 0 10 4 0 0 1234 5 45 0xffff00 1 1 0 0 0x0000ff
|
||||
blit_bitmap chess_image.rgba 20 35 8 8 0 0 8 8 0 0 0 1 32
|
||||
window_redraw 2
|
||||
|
||||
set_window_caption hi_there 0
|
||||
|
||||
get_font_smoothing
|
||||
set_font_smoothing 0
|
||||
get_font_smoothing
|
||||
|
||||
get_window_colors
|
||||
set_window_colors 0 0 0 0 0 0 0 0 0 0
|
||||
|
||||
dump_win_stack 2
|
||||
dump_win_pos 2
|
||||
dump_appdata 2
|
||||
|
||||
process_info -1
|
||||
get_skin_height
|
||||
get_screen_area
|
||||
set_screen_area 0 20 350 250
|
||||
get_screen_area
|
||||
get_skin_margins
|
||||
|
||||
get_font_size
|
||||
set_font_size 16
|
||||
get_font_size
|
||||
|
||||
get_screen_size
|
||||
|
||||
scrot 067_#f01_#draw_#draw24bit_all.out.png
|
||||
|
||||
disk_del rd
|
||||
Reference in New Issue
Block a user