From 0b13967de31b8d5a1e39e543b55c17999c81dee6 Mon Sep 17 00:00:00 2001 From: nmlgc Date: Thu, 20 Apr 2023 08:17:07 +0200 Subject: [PATCH] [Maintenance] [th01] Add some missing detail to existing comments Part of P0239, funded by Ember2528. --- th01/hardware/graph.h | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/th01/hardware/graph.h b/th01/hardware/graph.h index 4aad8bb5..c064fa0c 100644 --- a/th01/hardware/graph.h +++ b/th01/hardware/graph.h @@ -24,8 +24,9 @@ void z_graph_clear_col(uint4_t col); // Fills page #0 with hardware color 0. void z_graph_clear_0(void); -// Copies the content of the VRAM page that was previously set as the accessed -// one via a call to graph_accesspage_func() to the opposite one. +// Copies the content of the VRAM page that was set as the accessed one by the +// last call to graph_accesspage_func() to the opposite one. Returns with the +// accessed page unchanged. void graph_copy_accessed_page_to_other(void); /// ----- @@ -127,7 +128,9 @@ void graph_copy_byterect_from_accessed_page_to_other( // (⌊left/8⌋*8, top) // on the [src] page to // (⌊left/8⌋*8 + ⌊(right-left)/8⌋*8, bottom) -// on the [dst] page. Already assumes [src] to be the currently accessed page. +// on the [dst] page. Already assumes [src] to be the currently accessed page, +// and returns with the accessed page equal to the one set by the last call to +// graph_accesspage_func(). void graph_move_byterect_interpage( screen_x_t src_left, vram_y_t src_top,