1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-06-29 09:20:38 +00:00

Moves glutSetWindowTitle call to proper place on macOS. Fixes #75 for good.

This commit is contained in:
FellippeHeitor 2019-03-31 23:38:36 -03:00
parent 62acc0710c
commit f8c989a079
2 changed files with 11 additions and 1 deletions

View file

@ -284,6 +284,7 @@ int32 window_exists=0;
int32 create_window=0;
int32 window_focused=0; //Not used on Windows
uint8 *window_title=NULL;
int32 temp_window_title_set=0;
double max_fps=60;//60 is the default
int32 auto_fps=0;//set to 1 to make QB64 auto-adjust fps based on load
@ -26501,7 +26502,9 @@ void sub__title(qbs *title){
if (window_exists){
#ifdef QB64_GLUT
#ifndef QB64_MACOSX
#ifdef QB64_MACOSX
temp_window_title_set=1;
#else
glutSetWindowTitle((char*)window_title);
#endif
#endif

View file

@ -1271,6 +1271,13 @@ void sub__glrender(int32 method){
}
in_GLUT_DISPLAY_REQUEST=1;
#ifdef QB64_MACOSX
if (temp_window_title_set==1) {
glutSetWindowTitle((char*)window_title);
temp_window_title_set=0;
}
#endif
//general use variables
static int32 i,i2,i3;
static int32 x,y,x2,y2;