diff --git a/Passwords.cs b/Passwords.cs index 6862852..a813a20 100644 --- a/Passwords.cs +++ b/Passwords.cs @@ -1,6 +1,4 @@ -using System; - -namespace SGB_Settings_Editor +namespace SGB_Settings_Editor { // Convert SGB passwords to color palette public static class Passwords @@ -177,8 +175,7 @@ internal static ushort change_shade(ushort base_color, int shade) A = (ushort)(A << 5); A = (ushort)((cc & 0x7c1f) | A); cc = A; - A &= 0x001f; - A = sub(A); + A = sub((ushort)(A & 0x001f)); A = (ushort)((cc & 0x7fe0) | A); return A; } diff --git a/README.md b/README.md index 6d340f1..7eed8d7 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # SGB Settings Editor Settings Editor for Super Game Boy 1 & 2, also a general SNES color conversion tool. -Allows you to freely change the color palettes and game presets, switch the control type and select a different startup border. Compatible with the SGB mode of the SD2SNES / FXPAK. +Allows you to freely change the color palettes and game presets, switch the control type and select a different startup border. Color palette passwords from the Super Game Boy can be imported and converted to RGB values. Compatible with the SGB mode of the SD2SNES / FXPAK. -![screenshot](https://github.com/blzla/SGB-Palette-Editor/blob/main/screenshot.png?raw=true) +![screenshot](https://github.com/blzla/SGB-Settings-Editor/blob/main/screenshot.png?raw=true)