| 1530 | |
| 1531 | |
| 1532 | Byte CellEngine::GetCell( |
| 1533 | int col, |
| 1534 | int row) |
| 1535 | { |
| 1536 | if ((col < 0) || |
| 1537 | (col >= width) || |
| 1538 | (row < 0) || |
| 1539 | (row >= height) || |
| 1540 | (frontMem == NULL)) { |
| 1541 | return 0; |
| 1542 | } |
| 1543 | |
| 1544 | Byte cell = |
| 1545 | frontMem[col + (row * screenRowBytes)]; |
| 1546 | |
| 1547 | return cell; |
| 1548 | } |
| 1549 | |
| 1550 | |
| 1551 | void CellEngine::SetCell( |