diff --git a/src/gb/core.c b/src/gb/core.c index 85738caa4..9f67fd19d 100644 --- a/src/gb/core.c +++ b/src/gb/core.c @@ -277,6 +277,12 @@ static void _GBCoreReloadConfigOption(struct mCore* core, const char* option, co } return; } + if (strcmp("sgb.borders", option) == 0) { + if (mCoreConfigGetIntValue(config, "sgb.borders", &fakeBool)) { + gb->video.sgbBorders = fakeBool; + gb->video.renderer->enableSGBBorder(gb->video.renderer, fakeBool); + } + } } static void _GBCoreDesiredVideoDimensions(struct mCore* core, unsigned* width, unsigned* height) { diff --git a/src/gb/serialize.c b/src/gb/serialize.c index e8eaeefc7..0c1884c67 100644 --- a/src/gb/serialize.c +++ b/src/gb/serialize.c @@ -247,7 +247,6 @@ void GBSGBSerialize(struct GB* gb, struct GBSerializedState* state) { if (gb->video.renderer->sgbAttributes) { memcpy(state->sgb.attributes, gb->video.renderer->sgbAttributes, sizeof(state->sgb.attributes)); } - gb->video.renderer->enableSGBBorder(gb->video.renderer, gb->video.sgbBorders); } void GBSGBDeserialize(struct GB* gb, const struct GBSerializedState* state) {