diff --git a/Cocoa/Document.m b/Cocoa/Document.m
index fafdefc..bb1fc6f 100644
--- a/Cocoa/Document.m
+++ b/Cocoa/Document.m
@@ -1043,6 +1043,13 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency)
else if ([anItem action] == @selector(toggleCheats:)) {
[(NSMenuItem*)anItem setState:GB_cheats_enabled(&gb)];
}
+ else if ([anItem action] == @selector(toggleDisplayBackground:)) {
+ [(NSMenuItem*)anItem setState:!GB_is_background_rendering_disabled(&gb)];
+ }
+ else if ([anItem action] == @selector(toggleDisplayObjects:)) {
+ [(NSMenuItem*)anItem setState:!GB_is_object_rendering_disabled(&gb)];
+ }
+
return [super validateUserInterfaceItem:anItem];
}
@@ -2307,4 +2314,14 @@ static unsigned *multiplication_table_for_frequency(unsigned frequency)
[self.osdView displayText:@"Screenshot copied"];
}
+- (IBAction)toggleDisplayBackground:(id)sender
+{
+ GB_set_background_rendering_disabled(&gb, !GB_is_background_rendering_disabled(&gb));
+}
+
+- (IBAction)toggleDisplayObjects:(id)sender
+{
+ GB_set_object_rendering_disabled(&gb, !GB_is_object_rendering_disabled(&gb));
+}
+
@end
diff --git a/Cocoa/MainMenu.xib b/Cocoa/MainMenu.xib
index ca15de4..aafa8aa 100644
--- a/Cocoa/MainMenu.xib
+++ b/Cocoa/MainMenu.xib
@@ -456,6 +456,19 @@
+
+
+