Make WindowFlags const in createWindow;

This commit is contained in:
bjorn 2020-08-17 00:55:12 -06:00
parent e9841dd562
commit 810086e1ba
4 changed files with 4 additions and 4 deletions

View File

@ -146,7 +146,7 @@ size_t lovrPlatformGetDataDirectory(char* buffer, size_t size);
size_t lovrPlatformGetWorkingDirectory(char* buffer, size_t size);
size_t lovrPlatformGetExecutablePath(char* buffer, size_t size);
size_t lovrPlatformGetBundlePath(char* buffer, size_t size, const char** root);
bool lovrPlatformCreateWindow(WindowFlags* flags);
bool lovrPlatformCreateWindow(const WindowFlags* flags);
bool lovrPlatformHasWindow(void);
void lovrPlatformGetWindowSize(int* width, int* height);
void lovrPlatformGetFramebufferSize(int* width, int* height);

View File

@ -311,7 +311,7 @@ size_t lovrPlatformGetBundlePath(char* buffer, size_t size, const char** root) {
return length;
}
bool lovrPlatformCreateWindow(WindowFlags* flags) {
bool lovrPlatformCreateWindow(const WindowFlags* flags) {
if (state.display) {
return true;
}

View File

@ -190,7 +190,7 @@ void lovrPlatformPollEvents() {
}
}
bool lovrPlatformCreateWindow(WindowFlags* flags) {
bool lovrPlatformCreateWindow(const WindowFlags* flags) {
if (glfwState.window) {
return true;
}

View File

@ -123,7 +123,7 @@ size_t lovrPlatformGetBundlePath(char* buffer, size_t size, const char** root) {
return length;
}
bool lovrPlatformCreateWindow(WindowFlags* flags) {
bool lovrPlatformCreateWindow(const WindowFlags* flags) {
return true;
}