Skip to content

Commit

Permalink
fix em_asm blocks
Browse files Browse the repository at this point in the history
  • Loading branch information
caiiiycuk committed Oct 14, 2017
1 parent ce98f48 commit 1b0a73c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions cocos2dx/platform/emscripten/CCEGLView.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ void onReleaseKey(unsigned char key, int x, int y) {
EGLView::EGLView()
{
// mouse & touches handler
EM_ASM({
EM_ASM((
var getMousePos = function(event) {
var rect = Module["canvas"].getBoundingClientRect();
var cw = Module["canvas"].width;
Expand Down Expand Up @@ -201,7 +201,7 @@ EGLView::EGLView()
window.addEventListener("mousemove", onMouseMove, true);
window.addEventListener("mousedown", onMouseButtonDown, true);
window.addEventListener("mouseup", onMouseButtonUp, true);
});
));

_eglDisplay = EGL_NO_DISPLAY;
_eglContext = EGL_NO_CONTEXT;
Expand Down
4 changes: 2 additions & 2 deletions cocos2dx/platform/emscripten/CCTextureCacheEmscripten.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ void cocos2dx_initAsyncImageLoaderLibrary() {
if (isInited) {
return;
}
EM_ASM({
EM_ASM((
/****************************************************************************
Copyright (c) 2013 Zynga Inc.
Expand Down Expand Up @@ -341,7 +341,7 @@ var LibraryCocosHelper = {
window['LibraryCocosHelper'] = LibraryCocosHelper;
window['cocos2dx'] = LibraryCocosHelper.$cocos2dx;

});
));
}

extern "C" {
Expand Down

0 comments on commit 1b0a73c

Please sign in to comment.