MCPcopy Create free account
hub / github.com/NetHack/NetHack / vga_DisplayCell_O

Function vga_DisplayCell_O

sys/msdos/vidvga.c:1083–1107  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1081}
1082
1083static void
1084vga_DisplayCell_O(struct overview_planar_cell_struct *gpcs, int col, int row)
1085{
1086 int i, pixx, pixy;
1087 char __far *tmp_s; /* source pointer */
1088 char __far *tmp_d; /* destination pointer */
1089 int vplane;
1090
1091 pixy = row2y(row); /* convert to pixels */
1092 pixx = col;
1093 for (vplane = 0; vplane < SCREENPLANES; ++vplane) {
1094 egawriteplane(vp[vplane]);
1095 for (i = 0; i < ROWS_PER_CELL; ++i) {
1096 tmp_d = screentable[i + pixy];
1097 tmp_d += pixx;
1098 /*
1099 * memcpy((void *)tmp,(void *)gpcs->plane[vplane].image[i],
1100 * BYTES_PER_CELL);
1101 */
1102 tmp_s = gpcs->plane[vplane].image[i];
1103 WRITE_ABSOLUTE(tmp_d, (*tmp_s));
1104 }
1105 }
1106 egawriteplane(15);
1107}
1108
1109/*
1110 * Write the character string pointed to by 's', whose maximum length

Callers 2

vga_xputgFunction · 0.85
vidvga.cFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected