-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Decompilation] [th01] Unused function to snap all dots with hardware…
… color #4 That's… pretty specific. The only thing on the main menu with this color is the "1996 ZUN" text at the bottom… probably part of an effect that we never got to see. Every other idea would be baseless speculation, given that the snapped buffer isn't used anywhere else. Part of P0090, funded by Yanga.
- Loading branch information
Showing
3 changed files
with
51 additions
and
68 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,39 @@ | ||
/* ReC98 | ||
* ----- | ||
* Code segment #1 of TH01's OP.EXE | ||
*/ | ||
|
||
extern "C" { | ||
#include "ReC98.h" | ||
#include "th01/hardware/graph.h" | ||
|
||
// Unused. The only thing on the main menu with this color is the "1996 ZUN" | ||
// text at the bottom... probably part of an effect that we never got to see. | ||
void snap_col_4(void) | ||
{ | ||
extern dots8_t* columns[ROW_SIZE]; | ||
register int x; | ||
register int y; | ||
int vram_offset; | ||
|
||
for(x = 0; x < ROW_SIZE; x++) { | ||
columns[x] = new dots8_t[RES_Y]; | ||
} | ||
grcg_setcolor_tdw(4); | ||
graph_accesspage_func(1); | ||
|
||
for(x = 0; x < ROW_SIZE; x++) { | ||
y = 0; | ||
vram_offset = x; | ||
while(y < RES_Y) { | ||
columns[x][y] = VRAM_PLANE_B[vram_offset]; | ||
y++; | ||
vram_offset += ROW_SIZE; | ||
} | ||
} | ||
|
||
grcg_off(); | ||
graph_accesspage_func(0); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters