Skip to content

Commit 3531ace

Browse files
authored
Merge branch 'openframeworks:master' into master
2 parents 15e7b10 + 2b8a581 commit 3531ace

File tree

38 files changed

+339
-286
lines changed

38 files changed

+339
-286
lines changed

.github/workflows/build-msys2.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
runs-on: windows-latest
1515
strategy:
1616
matrix:
17-
mingw: [MINGW64,MINGW32]
17+
mingw: [MINGW64, MINGW32]
1818
defaults:
1919
run:
2020
shell: msys2 {0}

INSTALL_FROM_GITHUB.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ If you are a developer, or if you want to submit a pull request, [read this firs
99
Let's start by cloning the last `master` branch of openFrameworks and its submodules.
1010

1111
```bash
12-
git clone --recursive git@github.com:openframeworks/openFrameworks.git
12+
git clone --recursive git@github.com:openframeworks/openFrameworks.git --depth 1
1313
```
1414

1515
_Before continuing make sure your new openFrameworks path **has no spaces**. Many of the shell scripts below will fail on paths that include spaces._

SECURITY.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
# Security Policy
2+
3+
## Reporting a Vulnerability
4+
5+
Please report any security vulnerabilities to:
6+
7+
**of** at **openFrameworks** [**.cc**]

addons/ofxNetwork/src/ofxUDPManager.cpp

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -309,7 +309,6 @@ int ofxUDPManager::SendAll(const char* pBuff, const int iSize)
309309
auto timeleftSecs = m_dwTimeoutSend;
310310
auto timeleftMicros = 0;
311311
int total= 0;
312-
int bytesleft = iSize;
313312
int ret=-1;
314313

315314
while (total < iSize) {
@@ -324,7 +323,6 @@ int ofxUDPManager::SendAll(const char* pBuff, const int iSize)
324323
return SOCKET_ERROR;
325324
}
326325
total += ret;
327-
bytesleft -=ret;
328326
if (m_dwTimeoutSend != NO_TIMEOUT){
329327
auto now = ofGetElapsedTimeMicros();
330328
auto diff = now - timestamp;

addons/ofxPoco/src/ofxXmlPoco.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@
66

77
#include <numeric>
88

9+
#define byte _priv_byte
10+
911
#include <Poco/DOM/Document.h>
1012
#include <Poco/DOM/DocumentFragment.h>
1113
#include <Poco/DOM/Element.h>
@@ -26,6 +28,8 @@
2628
#include <Poco/DOM/NamedNodeMap.h>
2729
#include <Poco/DOM/ChildNodesList.h>
2830

31+
#undef byte
32+
2933
class ofxXmlPoco{
3034

3135
public:

libs/openFrameworks/3d/of3dUtils.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

33
#include "ofConstants.h"
4+
#include "ofFileUtils.h"
45
#include "glm/fwd.hpp"
56

67
/// \brief Draws x,y,z axes representing the current reference frame.

libs/openFrameworks/app/ofAppRunner.cpp

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -127,18 +127,19 @@ void ofInit(){
127127
signal(SIGABRT, &ofSignalHandler); // abort signal
128128
#endif
129129

130-
of::priv::initutils();
131-
132-
#ifdef WIN32_HIGH_RES_TIMING
133-
timeBeginPeriod(1); // ! experimental, sets high res time
134-
// you need to call timeEndPeriod.
135-
// if you quit the app other than "esc"
136-
// (ie, close the console, kill the process, etc)
137-
// at exit wont get called, and the time will
138-
// remain high res, that could mess things
139-
// up on your system.
140-
// info here:http://www.geisswerks.com/ryan/FAQS/timing.html
141-
#endif
130+
of::priv::initutils();
131+
of::priv::initfileutils();
132+
133+
#ifdef WIN32_HIGH_RES_TIMING
134+
timeBeginPeriod(1); // ! experimental, sets high res time
135+
// you need to call timeEndPeriod.
136+
// if you quit the app other than "esc"
137+
// (ie, close the console, kill the process, etc)
138+
// at exit wont get called, and the time will
139+
// remain high res, that could mess things
140+
// up on your system.
141+
// info here:http://www.geisswerks.com/ryan/FAQS/timing.html
142+
#endif
142143

143144
#ifdef TARGET_LINUX
144145
if(std::locale().name() == "C"){
@@ -173,7 +174,7 @@ void ofSetMainLoop(shared_ptr<ofMainLoop> newMainLoop) {
173174

174175
//--------------------------------------
175176
int ofRunApp(ofBaseApp * OFSA){
176-
mainLoop()->run(std::move(shared_ptr<ofBaseApp>(OFSA)));
177+
mainLoop()->run(shared_ptr<ofBaseApp>(OFSA));
177178
auto ret = ofRunMainLoop();
178179
#if !defined(TARGET_ANDROID) && !defined(TARGET_OF_IOS)
179180
ofExitCallback();

libs/openFrameworks/math/ofMath.h

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -441,13 +441,13 @@ bool ofLineSegmentIntersection(const vectype& line1Start, const vectype& line1En
441441
compareB = diffLB.x*line2Start.y - diffLB.y*line2Start.x;
442442
if (
443443
(
444-
( ( diffLA.x*line2Start.y - diffLA.y*line2Start.x ) < compareA ) ^
445-
( ( diffLA.x*line2End.y - diffLA.y*line2End.x ) < compareA )
444+
( ( diffLA.x*line2Start.y - diffLA.y*line2Start.x ) <= compareA ) ^
445+
( ( diffLA.x*line2End.y - diffLA.y*line2End.x ) <= compareA )
446446
)
447447
&&
448448
(
449-
( ( diffLB.x*line1Start.y - diffLB.y*line1Start.x ) < compareB ) ^
450-
( ( diffLB.x*line1End.y - diffLB.y*line1End.x) < compareB )
449+
( ( diffLB.x*line1Start.y - diffLB.y*line1Start.x ) <= compareB ) ^
450+
( ( diffLB.x*line1End.y - diffLB.y*line1End.x) <= compareB )
451451
)
452452
)
453453
{

libs/openFrameworks/sound/ofSoundBaseTypes.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#pragma once
22

33
#include "ofConstants.h"
4+
#include "ofFileUtils.h"
45
#include <functional>
56

67
class ofSoundBuffer;

libs/openFrameworks/types/ofParameter.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -747,7 +747,7 @@ inline void ofParameter<ParameterType>::eventsSetValue(const ParameterType & v){
747747
// Erase each invalid parent
748748
obj->parents.erase(std::remove_if(obj->parents.begin(),
749749
obj->parents.end(),
750-
[this](const std::weak_ptr<ofParameterGroup::Value> & p){ return p.expired(); }),
750+
[](const std::weak_ptr<ofParameterGroup::Value> & p){ return p.expired(); }),
751751
obj->parents.end());
752752

753753
// notify all leftover (valid) parents of this object's changed value.

0 commit comments

Comments
 (0)