1 /* This is a small demo of the high-performance GUIX graphics framework. */ 2 3 #include <stdio.h> 4 #include "gx_api.h" 5 6 #include "extended_unicode_resources.h" 7 #include "extended_unicode_specifications.h" 8 9 GX_WINDOW_ROOT *root; 10 extern SCREEN_BASE_CONTROL_BLOCK screen_base; 11 12 /* Define prototypes. */ 13 extern UINT win32_graphics_driver_setup_24xrgb(GX_DISPLAY *display); 14 main(int argc,char ** argv)15int main(int argc, char ** argv) 16 { 17 tx_kernel_enter(); 18 return(0); 19 } 20 21 /******************************************************************************************/ tx_application_define(void * first_unused_memory)22VOID tx_application_define(void *first_unused_memory) 23 { 24 25 /* Initialize GUIX. */ 26 gx_system_initialize(); 27 28 gx_studio_display_configure(MAIN_DISPLAY, win32_graphics_driver_setup_24xrgb, 29 LANGUAGE_ENGLISH, MAIN_DISPLAY_DEFAULT_THEME, &root); 30 31 /* create the main screen */ 32 gx_studio_named_widget_create("screen_base", (GX_WIDGET *)root, GX_NULL); 33 34 /* Show the root window to make it and patients screen visible. */ 35 gx_widget_show(root); 36 37 /* start GUIX thread */ 38 gx_system_start(); 39 }