diff --git a/Cocoa/Document.m b/Cocoa/Document.m
index a354e03..ad443b6 100644
--- a/Cocoa/Document.m
+++ b/Cocoa/Document.m
@@ -286,6 +286,7 @@ static void infraredStateChanged(GB_gameboy_t *gb, bool on)
GB_set_input_callback(&gb, (GB_input_callback_t) consoleInput);
GB_set_async_input_callback(&gb, (GB_input_callback_t) asyncConsoleInput);
GB_set_color_correction_mode(&gb, (GB_color_correction_mode_t) [[NSUserDefaults standardUserDefaults] integerForKey:@"GBColorCorrection"]);
+ GB_set_light_temperature(&gb, [[NSUserDefaults standardUserDefaults] doubleForKey:@"GBLightTemperature"]);
GB_set_border_mode(&gb, (GB_border_mode_t) [[NSUserDefaults standardUserDefaults] integerForKey:@"GBBorderMode"]);
[self updatePalette];
GB_set_rgb_encode_callback(&gb, rgbEncode);
diff --git a/Cocoa/GBPreferencesWindow.m b/Cocoa/GBPreferencesWindow.m
index dd13ca1..6edc54e 100644
--- a/Cocoa/GBPreferencesWindow.m
+++ b/Cocoa/GBPreferencesWindow.m
@@ -102,7 +102,6 @@
{
_temperatureSlider = temperatureSlider;
[temperatureSlider setDoubleValue:[[NSUserDefaults standardUserDefaults] doubleForKey:@"GBLightTemperature"] * 256];
- temperatureSlider.continuous = YES;
}
- (NSSlider *)temperatureSlider
diff --git a/Cocoa/Preferences.xib b/Cocoa/Preferences.xib
index 73eb0ab..e5494fb 100644
--- a/Cocoa/Preferences.xib
+++ b/Cocoa/Preferences.xib
@@ -79,7 +79,7 @@
-
+
@@ -97,7 +97,7 @@
-
+
@@ -134,7 +134,7 @@
-
+
@@ -143,7 +143,7 @@
-
+
@@ -263,8 +263,25 @@
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
+
-
+
@@ -491,7 +508,7 @@
-
+