mirror of
https://github.com/bsnes-emu/bsnes.git
synced 2025-09-02 13:32:36 +02:00
Update to v093r06 release.
byuu says: Changelog: - Windows port should compile out-of-the-box - InputManager::scancode[] initialized at startup - Library menu shows item for each bootable media type (notably Game Boy Color) - Display Emulation menu selection fix - LibraryManager load button works now - Added hotkey to show library manager (defaults to L) - Added color emulation to video settings (missing on GBA for now) - SFC loading SGB without GB cartridge no longer segfaults - GB/GBC system.load() after cartridge.load() - GB/GBC BG-over-OAM fix - GB/GBC disallow up+down and left+right
This commit is contained in:
@@ -109,8 +109,8 @@ bool Interface::unserialize(serializer& s) {
|
||||
return system.unserialize(s);
|
||||
}
|
||||
|
||||
void Interface::paletteUpdate() {
|
||||
video.generate_palette();
|
||||
void Interface::paletteUpdate(bool colorEmulation) {
|
||||
video.generate_palette(colorEmulation);
|
||||
}
|
||||
|
||||
Interface::Interface() {
|
||||
|
@@ -43,7 +43,7 @@ struct Interface : Emulator::Interface {
|
||||
serializer serialize();
|
||||
bool unserialize(serializer&);
|
||||
|
||||
void paletteUpdate();
|
||||
void paletteUpdate(bool colorEmulation);
|
||||
|
||||
Interface();
|
||||
|
||||
|
@@ -4,7 +4,8 @@ namespace GameBoyAdvance {
|
||||
|
||||
Video video;
|
||||
|
||||
void Video::generate_palette() {
|
||||
void Video::generate_palette(bool color_emulation) {
|
||||
//todo: implement LCD color emulation
|
||||
for(unsigned color = 0; color < (1 << 15); color++) {
|
||||
uint5 b = color >> 10;
|
||||
uint5 g = color >> 5;
|
||||
|
@@ -1,6 +1,6 @@
|
||||
struct Video {
|
||||
unsigned* palette;
|
||||
void generate_palette();
|
||||
void generate_palette(bool color_emulation);
|
||||
|
||||
Video();
|
||||
~Video();
|
||||
|
Reference in New Issue
Block a user