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:
parent
62acc0710c
commit
f8c989a079
|
@ -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
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue