| 924 | } |
| 925 | |
| 926 | static int |
| 927 | draw_prompt(PARMBLK *pb) |
| 928 | { |
| 929 | GRECT area = *(GRECT *) &pb->pb_x; |
| 930 | |
| 931 | if (rc_intersect((GRECT *) &pb->pb_xc, &area)) { |
| 932 | char **ptr = (char **) pb->pb_parm; |
| 933 | int x = pb->pb_x, y = pb->pb_y, chardim[4]; |
| 934 | |
| 935 | /* void v_set_text(int font,int height,int color,int effect,int |
| 936 | * rotate,int out[4]) */ |
| 937 | v_set_mode(MD_TRANS); |
| 938 | v_set_text(ibm_font_id, ibm_font, WHITE, 0, 0, chardim); |
| 939 | Vsync(); |
| 940 | if (planes < 4) { |
| 941 | int pxy[4]; |
| 942 | v_set_fill(BLACK, 2, 4, 0); |
| 943 | rc_grect_to_array(&area, pxy); |
| 944 | v_bar(x_handle, pxy); |
| 945 | } else |
| 946 | my_color_area(&area, LWHITE); |
| 947 | (*v_mtext)(x_handle, x, y, *(ptr++)); |
| 948 | if (*ptr) |
| 949 | (*v_mtext)(x_handle, x, y + chardim[3], *ptr); |
| 950 | } |
| 951 | return (0); |
| 952 | } |
| 953 | |
| 954 | static USERBLK ub_lines = { draw_lines, 0L }, ub_msg = { draw_msgline, 0L }, |
| 955 | ub_inventory = { draw_inventory, 0L }, |
nothing calls this directly
no test coverage detected