Skip to content

Commit

Permalink
Update color matrices by Pokefan531.
Browse files Browse the repository at this point in the history
  • Loading branch information
Extrems committed Dec 23, 2020
1 parent 25ceaba commit 9b908b1
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 25 deletions.
2 changes: 1 addition & 1 deletion emgba.dcp
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ Name={--filter, Filter}
Values={none, Sharp}, {blend, Soft}, {deflicker, Normal}, {scale2xex, Scale2�Ex}, {scale2xplus, Scale2�Plus}, {scale2x, Scale2�}, {eagle2x, Eagle2�}, {scan2x, Scan2�}

Name={--matrix, Color Matrix}
Values={identity, Identity}, {gba, GBA}, {gbc, GBC}, {gbi, GBI}, {nds, NDS}, {palm, Palm}, {psp, PSP}, {vba, VBA}
Values={identity, Identity}, {gba, GBA}, {gbi, GBI}, {nds, NDS}, {palm, Palm}, {psp, PSP}, {vba, VBA}

Name={--input-gamma, Decoding Gamma}
Values={1.0, 1.0}, {1.2, 1.2}, {1.4, 1.4}, {1.6, 1.6}, {1.8, 1.8}, {2.0, 2.0}, {2.2, 2.2}, {2.4, 2.4}
Expand Down
33 changes: 12 additions & 21 deletions source/gx_preview.c
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,17 @@ static GXColorS10 color[][3] = {
{ + 0, + 0, + 0 },
{ + 0, + 0, + 0 }
}, [MATRIX_GBA] = {
{ -13, + 0, + 0 },
{ -15, + 0, + 0 },
{ + 0, + 0, + 0 },
{ +13, + 0, + 0 }
}, [MATRIX_GBC] = {
{ -13, + 0, + 0 },
{ + 0, + 0, + 0 },
{ +13, + 0, + 0 }
{ +15, + 0, + 0 }
}, [MATRIX_GBI] = {
{ -27, + 0, + 0 },
{ + 0, + 0, + 0 },
{ +27, + 0, + 0 }
}, [MATRIX_NDS] = {
{ -13, + 0, + 0 },
{ -32, + 0, + 0 },
{ + 0, + 0, + 0 },
{ +13, + 0, + 0 }
{ +32, + 0, + 0 }
}, [MATRIX_PALM] = {
{ -23, + 0, + 0 },
{ + 0, + 0, + 0 },
Expand All @@ -88,25 +84,20 @@ static GXColor kcolor[][4] = {
{ 0, 0, 255 },
{ 54, 182, 18 }
}, [MATRIX_GBA] = {
{ 219, 28, 34 },
{ 48, 168, 15 },
{ 0, 59, 207 },
{ 69, 132, 54 }
}, [MATRIX_GBC] = {
{ 222, 29, 36 },
{ 46, 168, 18 },
{ 0, 57, 201 },
{ 71, 131, 53 }
{ 209, 32, 50 },
{ 61, 170, 19 },
{ 0, 54, 186 },
{ 71, 136, 48 }
}, [MATRIX_GBI] = {
{ 238, 12, 7 },
{ 45, 195, 9 },
{ 0, 48, 239 },
{ 60, 149, 46 }
}, [MATRIX_NDS] = {
{ 217, 24, 15 },
{ 51, 167, 19 },
{ 0, 64, 221 },
{ 65, 132, 59 }
{ 222, 26, 26 },
{ 65, 164, 43 },
{ 0, 65, 186 },
{ 67, 135, 53 }
}, [MATRIX_PALM] = {
{ 212, 19, 22 },
{ 66, 173, 31 },
Expand Down
2 changes: 0 additions & 2 deletions source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -1567,8 +1567,6 @@ static void preinit(int argc, char **argv)
state.matrix = MATRIX_IDENTITY;
else if (strcmp(optarg, "gba") == 0)
state.matrix = MATRIX_GBA;
else if (strcmp(optarg, "gbc") == 0)
state.matrix = MATRIX_GBC;
else if (strcmp(optarg, "gbi") == 0)
state.matrix = MATRIX_GBI;
else if (strcmp(optarg, "nds") == 0)
Expand Down
1 change: 0 additions & 1 deletion source/state.h
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,6 @@ typedef struct {
enum {
MATRIX_IDENTITY = 0,
MATRIX_GBA,
MATRIX_GBC,
MATRIX_GBI,
MATRIX_NDS,
MATRIX_PALM,
Expand Down

0 comments on commit 9b908b1

Please sign in to comment.