Changeset cf2af94 in mainline for uspace/srv/hid/console/gcons.c
- Timestamp:
- 2011-02-09T11:46:47Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- cb15135a
- Parents:
- a49c4002 (diff), 0b37882 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/console/gcons.c
ra49c4002 rcf2af94 34 34 35 35 #include <ipc/fb.h> 36 #include <ipc/ipc.h>37 36 #include <async.h> 38 37 #include <stdio.h> … … 82 81 83 82 static bool use_gcons = false; 84 static ipcarg_t xres;85 static ipcarg_t yres;83 static sysarg_t xres; 84 static sysarg_t yres; 86 85 87 86 enum butstate { … … 107 106 static size_t active_console = 0; 108 107 109 static ipcarg_t mouse_x = 0;110 static ipcarg_t mouse_y= 0;108 static sysarg_t mouse_x = 0; 109 static sysarg_t mouse_y= 0; 111 110 112 111 static bool btn_pressed = false; 113 static ipcarg_t btn_x = 0;114 static ipcarg_t btn_y = 0;112 static sysarg_t btn_x = 0; 113 static sysarg_t btn_y = 0; 115 114 116 115 static void vp_switch(int vp) … … 120 119 121 120 /** Create view port */ 122 static int vp_create( ipcarg_t x, ipcarg_t y, ipcarg_t width, ipcarg_t height)121 static int vp_create(sysarg_t x, sysarg_t y, sysarg_t width, sysarg_t height) 123 122 { 124 123 return async_req_2_0(fbphone, FB_VIEWPORT_CREATE, (x << 16) | y, … … 137 136 138 137 /** Transparent putchar */ 139 static void tran_putch(wchar_t ch, ipcarg_t col, ipcarg_t row)138 static void tran_putch(wchar_t ch, sysarg_t col, sysarg_t row) 140 139 { 141 140 async_msg_3(fbphone, FB_PUTCHAR, ch, col, row); … … 297 296 } 298 297 299 static int gcons_find_conbut( ipcarg_t x, ipcarg_t y)300 { 301 ipcarg_t status_start = STATUS_START + (xres - 800) / 2;298 static int gcons_find_conbut(sysarg_t x, sysarg_t y) 299 { 300 sysarg_t status_start = STATUS_START + (xres - 800) / 2; 302 301 303 302 if ((y < STATUS_TOP) || (y >= STATUS_TOP + STATUS_HEIGHT)) … … 313 312 return -1; 314 313 315 ipcarg_t btn = (x - status_start) / (STATUS_WIDTH + STATUS_SPACE);314 sysarg_t btn = (x - status_start) / (STATUS_WIDTH + STATUS_SPACE); 316 315 317 316 if (btn < CONSOLE_COUNT) … … 363 362 * 364 363 */ 365 static void draw_pixmap(char *logo, size_t size, ipcarg_t x, ipcarg_t y)364 static void draw_pixmap(char *logo, size_t size, sysarg_t x, sysarg_t y) 366 365 { 367 366 /* Create area */ … … 374 373 375 374 /* Send area */ 376 int rc = async_req_1_0(fbphone, FB_PREPARE_SHM, ( ipcarg_t) shm);375 int rc = async_req_1_0(fbphone, FB_PREPARE_SHM, (sysarg_t) shm); 377 376 if (rc) 378 377 goto exit; … … 436 435 437 436 /* Send area */ 438 int rc = async_req_1_0(fbphone, FB_PREPARE_SHM, ( ipcarg_t) shm);437 int rc = async_req_1_0(fbphone, FB_PREPARE_SHM, (sysarg_t) shm); 439 438 if (rc) 440 439 goto exit; … … 513 512 514 513 /* Create status buttons */ 515 ipcarg_t status_start = STATUS_START + (xres - 800) / 2;514 sysarg_t status_start = STATUS_START + (xres - 800) / 2; 516 515 size_t i; 517 516 for (i = 0; i < CONSOLE_COUNT; i++) {
Note:
See TracChangeset
for help on using the changeset viewer.