Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Decompilation] [th03] SPRITE16: Inline method for sprite size assign…
…ments All but one of the writes to these globals follow the consistent scheme of assigning hardcoded literals to first `w` and then `h`, so it makes sense to encapsulate the conversion from display-space pixels to VRAM words and heights in a method. (On that note, we also need a new type to encode the notion of VRAM-space heights as opposed to the display-space heights of `pixel_t`.) Part of P0280, funded by [Anonymous], Blue Bolt, and JonathKane.
- Loading branch information
Showing
7 changed files
with
24 additions
and
22 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
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
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
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 |
---|---|---|
@@ -1,8 +1,7 @@ | ||
public _sprite16_clip_left, _sprite16_clip_right | ||
public _sprite16_put_h, _sprite16_put_w | ||
|
||
public _sprite16_clip_left, _sprite16_clip_right, _sprite16_put_size | ||
_sprite16_clip_left dw ? | ||
_sprite16_clip_right dw ? | ||
label _sprite16_put_size byte | ||
_sprite16_put_h dw ? | ||
_sprite16_put_w db ? | ||
db ? | ||
evendata |