Skip to content

Commit

Permalink
Color Plus update
Browse files Browse the repository at this point in the history
  • Loading branch information
Engezerstorung committed Sep 25, 2024
1 parent fafdb5f commit 3260b74
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 9 deletions.
2 changes: 1 addition & 1 deletion color/data/spritepalettes.asm
Original file line number Diff line number Diff line change
Expand Up @@ -181,7 +181,7 @@ SpritePalettes:
RGB 31,25,13
RGB 16,16,16
RGB 0,0,0

; SPRITE_PAL_RED
RGB 27,31,27
RGB 31,19,10
Expand Down
4 changes: 2 additions & 2 deletions color/vblank.asm
Original file line number Diff line number Diff line change
Expand Up @@ -409,8 +409,8 @@ SetBlackColor:
ret

SetWhiteColor:
ld a, whiteLow
ld b, whiteHigh
ld a, LOW(wpWhite)
ld b, HIGH(wpWhite)
ld c, 8 * 4
.loop
ld [hli], a
Expand Down
2 changes: 1 addition & 1 deletion color/wram.asm
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ DEF W2_ScreenPalettesBuffer EQU $d500 ; 32x6 bytes (DMA-able), $d500-$d5c
DEF W2_TownMapLoaded EQU $d700
DEF W2_TileBasedPalettes EQU $d701
DEF W2_StaticPaletteMapChanged EQU $d702 ; Set to a number >=3 if palette map is modified, since the window is drawn in thirds. Only for when TileBasedPalettes == 0.
DEF W2_UseOBP1 EQU $d703 ; If set, sprite palettes 4-7 use OBP1 instead of OBP0
DEF W2_UseOBP1 EQU $d703 ; Set bits of the value to have palettes use OBP1 instead of OBP0

; These are like W2_BgPaletteData/SprPaletteData, but they account for BGP/OBP0/OBP1.
DEF W2_BgPaletteDataBuffer EQU $d704
Expand Down
1 change: 0 additions & 1 deletion includes.asm
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@ DEF COLOR_MATRIX = 1
; 2 : hunterk Color Mangler matrix from their gbc shader
; 3 : Jojobear13 matrix from their "Built-in Color Correction for GBC games" tutorial


DEF GAMMA = 1.3
; 0 or 1.0 to turn OFF
; Don't omit the .0 for integer numbers
Expand Down
6 changes: 2 additions & 4 deletions macros/gfx.asm
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,10 @@ MACRO RGB


IF LCD_COLORS ; experimental, LCD color correction
DEF whiteHigh = HIGH(palred wRed + palgreen wGreen + palblue wBlue)
DEF whiteLow = LOW(palred wRed + palgreen wGreen + palblue wBlue)
DEF wpWhite = (palred wRed + palgreen wGreen + palblue wBlue)
dw palred wpRed + palgreen wpGreen + palblue wpBlue
ELSE
DEF whiteHigh = $FF
DEF whiteLow = $FF
DEF wpWhite = $FFFF
dw palred (\1) + palgreen (\2) + palblue (\3)
ENDC
SHIFT 3
Expand Down

0 comments on commit 3260b74

Please sign in to comment.