comparison src/gui_photon.c @ 1214:a91a2e0c4108

updated for version 7.1b
author vimboss
date Thu, 10 May 2007 18:25:20 +0000
parents 5117153003bd
children e65e50609469
comparison
equal deleted inserted replaced
1213:8906c10ecbb0 1214:a91a2e0c4108
286 PhPoint_t below_menu; 286 PhPoint_t below_menu;
287 int_u height; 287 int_u height;
288 288
289 height = sizes->new_dim.h; 289 height = sizes->new_dim.h;
290 290
291 /* Because vim treats the toolbar and menubar separatly, 291 /* Because vim treats the toolbar and menubar separately,
292 * and here they're lumped together into a PtToolbarGroup, 292 * and here they're lumped together into a PtToolbarGroup,
293 * we only need either menu_height or toolbar_height set at once */ 293 * we only need either menu_height or toolbar_height set at once */
294 if( gui.menu_is_active ) 294 if( gui.menu_is_active )
295 { 295 {
296 gui.menu_height = height; 296 gui.menu_height = height;
738 PgGetTranslation( &translation ); 738 PgGetTranslation( &translation );
739 PgClearTranslation(); 739 PgClearTranslation();
740 740
741 #if 0 741 #if 0
742 /* 742 /*
743 * This causes some wierd probems, with drawing being done from 743 * This causes some weird problems, with drawing being done from
744 * within this raw drawing function (rather than just simple clearing 744 * within this raw drawing function (rather than just simple clearing
745 * and text drawing done by gui_redraw) 745 * and text drawing done by gui_redraw)
746 * 746 *
747 * The main problem is when PhBlit is used, and the cursor appearing 747 * The main problem is when PhBlit is used, and the cursor appearing
748 * in places where it shouldn't 748 * in places where it shouldn't
1114 gui_mch_init(void) 1114 gui_mch_init(void)
1115 { 1115 {
1116 PtArg_t args[10]; 1116 PtArg_t args[10];
1117 int flags = 0, n = 0; 1117 int flags = 0, n = 0;
1118 1118
1119 PhDim_t window_size = {100, 100}; /* Abitrary values */ 1119 PhDim_t window_size = {100, 100}; /* Arbitrary values */
1120 PhPoint_t pos = {0, 0}; 1120 PhPoint_t pos = {0, 0};
1121 1121
1122 gui.event_buffer = (PhEvent_t *) alloc( EVENT_BUFFER_SIZE ); 1122 gui.event_buffer = (PhEvent_t *) alloc( EVENT_BUFFER_SIZE );
1123 if( gui.event_buffer == NULL ) 1123 if( gui.event_buffer == NULL )
1124 return( FAIL ); 1124 return( FAIL );
1976 return( -1000 ); 1976 return( -1000 );
1977 } 1977 }
1978 1978
1979 1979
1980 /* 1980 /*
1981 * This should be split out into a seperate file, 1981 * This should be split out into a separate file,
1982 * every port does basically the same thing. 1982 * every port does basically the same thing.
1983 * 1983 *
1984 * This is the gui_w32.c version (i think..) 1984 * This is the gui_w32.c version (i think..)
1985 * Return INVALCOLOR when failed. 1985 * Return INVALCOLOR when failed.
1986 */ 1986 */