Skip to content

Commit ebada99

Browse files
author
Florin
committed
windows tick
1 parent 103ebea commit ebada99

File tree

2 files changed

+16
-0
lines changed

2 files changed

+16
-0
lines changed

bea/cv.bea

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -324,6 +324,7 @@
324324

325325

326326
#Manual functions
327+
@manual void doTick() #windows only
327328
@manual void discardMats()
328329
@manual void fillPoly(Mat& img, const Point** pts, const int* npts, int ncontours, const Scalar& color, int lineType=8, int shift=0, Point offset=Point())
329330
@manual Size getTextSize(const std::string& text, int fontFace, double fontScale, int thickness, int* baseLine)

src/opencv_manual.cpp

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,21 @@ using namespace cv;
99

1010
namespace opencvjs {
1111

12+
v8::Handle<v8::Value> JOpenCV::doTick(const v8::Arguments& args){
13+
METHOD_BEGIN(0);
14+
15+
#ifdef _WIN32
16+
MSG msg;
17+
if (GetMessage(&msg, NULL, 0, 0)){
18+
TranslateMessage(&msg);
19+
DispatchMessage(&msg);
20+
}
21+
#endif
22+
23+
return args.This();
24+
METHOD_END();
25+
}
26+
1227
v8::Handle<v8::Value> JMat::at(const v8::Arguments& args) {
1328
METHOD_BEGIN(1);
1429
//Experimental - not tested

0 commit comments

Comments
 (0)