diff options
author | Ashish Gupta <ashmew2@gmail.com> | 2017-04-05 21:39:01 +0200 |
---|---|---|
committer | Ashish Gupta <ashmew2@gmail.com> | 2017-06-10 08:24:39 +0200 |
commit | 6fd280bb5b27842a0ef2977798566c37bd4e1d0e (patch) | |
tree | 8e5dd8aa1adf8c6550b955d130c81c36b3db9ea5 /frontends/kolibrios/kolibri_colors.h | |
parent | 9bf5ecfa87d022645e986249270c5a89e27f46fe (diff) | |
download | netsurf-6fd280bb5b27842a0ef2977798566c37bd4e1d0e.tar.gz netsurf-6fd280bb5b27842a0ef2977798566c37bd4e1d0e.tar.bz2 |
Add kolibrios/ dir : Step 1 towards porting this to Kolibri OS
Diffstat (limited to 'frontends/kolibrios/kolibri_colors.h')
-rw-r--r-- | frontends/kolibrios/kolibri_colors.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/frontends/kolibrios/kolibri_colors.h b/frontends/kolibrios/kolibri_colors.h new file mode 100644 index 000000000..7a16a4024 --- /dev/null +++ b/frontends/kolibrios/kolibri_colors.h @@ -0,0 +1,28 @@ +#ifndef KOLIBRI_COLORS_H +#define KOLIBRI_COLORS_H +struct kolibri_system_colors { + unsigned int color_frame_area; + unsigned int color_grab_bar; + unsigned int color_grab_bar_button; + unsigned int color_grab_button_text; + unsigned int color_grab_text; + unsigned int color_work_area; + unsigned int color_work_button; + unsigned int color_work_button_text; + unsigned int color_work_text; + unsigned int color_work_graph; +}; + +struct kolibri_system_colors kolibri_color_table; + +void kolibri_get_system_colors(struct kolibri_system_colors *color_table) +{ + __asm__ volatile ("int $0x40" + : + :"a"(48),"b"(3),"c"(color_table),"d"(40) + ); + + /* color_table should point to the system color table */ +} + +#endif /* KOLIBRI_COLORS_H */ |