Skip to content

Commit

Permalink
Merge branch 'master' of github.com:openframeworks/openFrameworks
Browse files Browse the repository at this point in the history
  • Loading branch information
arturoc committed Sep 23, 2018
2 parents 3593610 + e6386bb commit fe5f7df
Show file tree
Hide file tree
Showing 10 changed files with 64 additions and 15 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,22 +72,22 @@ matrix:
- libstdc++6

- os: osx
osx_image: xcode8
osx_image: xcode9.4
compiler: clang
env: TARGET="osx"

- os: osx
osx_image: xcode8
osx_image: xcode9.4
compiler: clang
env: TARGET="osx" OPT="makefiles"

- os: osx
osx_image: xcode8
osx_image: xcode9.4
compiler: clang
env: TARGET="ios"

- os: osx
osx_image: xcode8
osx_image: xcode9.4
compiler: clang
env: TARGET="tvos"

Expand Down
11 changes: 7 additions & 4 deletions libs/openFrameworks/app/ofAppGLFWWindow.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -236,6 +236,9 @@ void ofAppGLFWWindow::setup(const ofGLFWWindowSettings & _settings){
if(settings.windowMode==OF_FULLSCREEN){
int count = 0;
auto monitors = glfwGetMonitors(&count);
auto mode = glfwGetVideoMode(monitors[settings.monitor]);
currentW = mode->width;
currentH = mode->height;
if(!settings.isPositionSet()){
if(count > 0){
int x = 0, y = 0;
Expand Down Expand Up @@ -525,7 +528,7 @@ void ofAppGLFWWindow::setWindowTitle(string title){

//------------------------------------------------------------
int ofAppGLFWWindow::getPixelScreenCoordScale(){
return pixelScreenCoordScale;
return pixelScreenCoordScale;
}

//------------------------------------------------------------
Expand All @@ -547,9 +550,9 @@ glm::vec2 ofAppGLFWWindow::getWindowSize(){
glm::vec2 ofAppGLFWWindow::getWindowPosition(){
int x, y;
glfwGetWindowPos(windowP, &x, &y);

x *= pixelScreenCoordScale;
y *= pixelScreenCoordScale;
x *= pixelScreenCoordScale;
y *= pixelScreenCoordScale;

if( orientation == OF_ORIENTATION_DEFAULT || orientation == OF_ORIENTATION_180 ){
return glm::vec2{x,y};
Expand Down
2 changes: 1 addition & 1 deletion libs/openFrameworks/utils/ofConstants.h
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#define OF_VERSION_MAJOR 0
#define OF_VERSION_MINOR 11
#define OF_VERSION_PATCH 0
#define OF_VERSION_PRE_RELEASE "stable"
#define OF_VERSION_PRE_RELEASE "master"

// Set to 1 for compatibility with old projects using ofVec instead of glm
#ifndef OF_USE_LEGACY_VECTOR_MATH
Expand Down
4 changes: 2 additions & 2 deletions scripts/dev/head.template
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<title>openFrameworks</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>

<link rel="stylesheet" type="text/css" href="http://openframeworks.cc/assets/css/style.css" media="all" />
<link href='http://fonts.googleapis.com/css?family=Questrial' rel='stylesheet' type='text/css'>
<link rel="stylesheet" type="text/css" href="https://openframeworks.cc/assets/css/style.css" media="all" />
<link href='https://fonts.googleapis.com/css?family=Questrial' rel='stylesheet' type='text/css'>
Original file line number Diff line number Diff line change
Expand Up @@ -45,6 +45,9 @@ Project{
of.frameworks: [] // osx only, additional frameworks to link with the project
of.staticLibraries: [] // static libraries
of.dynamicLibraries: [] // dynamic libraries

// create a console window when the application start
consoleApplication: %{ConsoleWindow}

// other flags can be set through the cpp module: http://doc.qt.io/qbs/cpp-module.html
// eg: this will enable ccache when compiling
Expand Down
18 changes: 18 additions & 0 deletions scripts/qtcreator/templates/wizards/openFrameworks/wizard.json
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,24 @@
}
]
},
{
"trDisplayName": "Console windows",
"trShortTitle": "Console",
"typeId": "Fields",
"data" :
[
{
"name": "ConsoleWindow",
"trDisplayName": "Create a console window when application start",
"type": "CheckBox",
"data": {
"checkedValue": "true",
"uncheckedValue": "false",
"checked": "false"
}
}
]
},
{
"trDisplayName": "Addons",
"trShortTitle": "Addons",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,9 @@ Project{
of.frameworks: [] // osx only, additional frameworks to link with the project
of.staticLibraries: [] // static libraries
of.dynamicLibraries: [] // dynamic libraries

// create a console window when the application start
consoleApplication: %{ConsoleWindow}

// other flags can be set through the cpp module: http://doc.qt.io/qbs/cpp-module.html
// eg: this will enable ccache when compiling
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ Project{
of.frameworks: [] // osx only, additional frameworks to link with the project
of.staticLibraries: [] // static libraries
of.dynamicLibraries: [] // dynamic libraries

// create a console window when the application start
consoleApplication: %{ConsoleWindow}

// other flags can be set through the cpp module: http://doc.qt.io/qbs/cpp-module.html
// eg: this will enable ccache when compiling
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,24 @@
}
]
},
{
"trDisplayName": "Console windows",
"trShortTitle": "Console",
"typeId": "Fields",
"data" :
[
{
"name": "ConsoleWindow",
"trDisplayName": "Create a console window when application start",
"type": "CheckBox",
"data": {
"checkedValue": "true",
"uncheckedValue": "false",
"checked": "false"
}
}
]
},
{
"trDisplayName": "Kit Selection",
"trShortTitle": "Kits",
Expand Down
9 changes: 5 additions & 4 deletions scripts/vs/setupCommandLine.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -147,11 +147,12 @@ for /d %%X in (..\..\examples\*) do (
echo.

if "%BUILD_TOOL%"=="msbuild" (
if not "%CONFIGURATION%"=="release" (msbuild /nologo /noautoresponse %%Z /p:Configuration=Debug)
if not "%CONFIGURATION%"=="debug" (msbuild /nologo /noautoresponse %%Z /p:Configuration=Release)
if not "%CONFIGURATION%"=="release" (msbuild %%Z /t:%ACTION% /nologo /noautoresponse /maxcpucount /p:Configuration=Debug)
if not "%CONFIGURATION%"=="debug" (msbuild %%Z /t:%ACTION% /nologo /noautoresponse /maxcpucount /p:Configuration=Release)
) else (
if not "%CONFIGURATION%"=="release" (%BUILD_TOOL% "%CD%\%%X\%%Y\%%Z" /%ACTION% Debug /nologo)
if not "%CONFIGURATION%"=="debug" (%BUILD_TOOL% "%CD%\%%X\%%Y\%%Z" /%ACTION% Release /nologo))
if not "%CONFIGURATION%"=="release" (%BUILD_TOOL% "%CD%\%%X\%%Z" /%ACTION% "Debug|%PLATFORM%" /nologo)
if not "%CONFIGURATION%"=="debug" (%BUILD_TOOL% "%CD%\%%X\%%Z" /%ACTION% "Release|%PLATFORM%" /nologo)
)
)
cd ../
)
Expand Down

0 comments on commit fe5f7df

Please sign in to comment.