()
| 430 | } |
| 431 | |
| 432 | private void processMemoryViewUpdates() { |
| 433 | boolean isRunning = Emulator.withComputer(c->c.getMotherboard().isRunning(), false); |
| 434 | if (!isRunning) return; |
| 435 | GraphicsContext context = memoryViewCanvas.getGraphicsContext2D(); |
| 436 | Platform.runLater(() -> { |
| 437 | redrawNodes.values().stream().forEach((jace.cheat.MemoryCell cell) -> { |
| 438 | if (showValuesCheckbox.isSelected()) { |
| 439 | int val = cell.value.get() & 0x0ff; |
| 440 | context.setFill(Color.rgb(val, val, val)); |
| 441 | } else { |
| 442 | context.setFill(Color.rgb( |
| 443 | cell.writeCount.get(), |
| 444 | cell.readCount.get(), |
| 445 | cell.execCount.get())); |
| 446 | } |
| 447 | context.fillRect(cell.getX(), cell.getY(), cell.getWidth(), cell.getHeight()); |
| 448 | }); |
| 449 | redrawNodes.clear(); |
| 450 | }); |
| 451 | } |
| 452 | |
| 453 | public static int FRAME_RATE = 1000 / 30; |
| 454 |
nothing calls this directly
no test coverage detected