displays -- think I got it working

This commit is contained in:
Lars A. Doucet
2015-07-30 15:40:33 -05:00
parent e04b18cd8a
commit 8dfe690981
2 changed files with 4 additions and 4 deletions

View File

@@ -17,7 +17,7 @@ namespace lime {
static const char* GetDisplayName (int displayIndex); static const char* GetDisplayName (int displayIndex);
static int GetNumDisplayModes (int displayIndex); static int GetNumDisplayModes (int displayIndex);
} };
} }

View File

@@ -393,13 +393,13 @@ namespace lime {
value lime_display_get_current_display_mode (value displayIndex) { value lime_display_get_current_display_mode (value displayIndex) {
return Display::GetCurrentDisplayMode(displayIndex); return Display::GetCurrentDisplayMode(val_int(displayIndex));
} }
value lime_display_get_display_mode (value displayIndex, value modeIndex) { value lime_display_get_display_mode (value displayIndex, value modeIndex) {
return Display::GetCurrentDisplayMode(displayIndex, modeIndex); return Display::GetDisplayMode(val_int(displayIndex), val_int(modeIndex));
} }
@@ -417,7 +417,7 @@ namespace lime {
value lime_display_get_num_display_modes (value displayIndex) { value lime_display_get_num_display_modes (value displayIndex) {
return alloc_int (Display::GetNumDisplayModes(val_int (displayIndex)); return alloc_int (Display::GetNumDisplayModes(val_int (displayIndex)));
} }