Skip to content
Snippets Groups Projects
Commit fe24e442 authored by Richard Linden's avatar Richard Linden
Browse files

BUILDFIX: converted platform-specific files over to new LL_INFOS, etc macros

parent a2dc1b7e
No related branches found
No related tags found
No related merge requests found
...@@ -624,22 +624,22 @@ BOOL LLWindowMacOSX::createContext(int x, int y, int width, int height, int bits ...@@ -624,22 +624,22 @@ BOOL LLWindowMacOSX::createContext(int x, int y, int width, int height, int bits
if(aglDescribeRenderer(rendererInfo, AGL_VIDEO_MEMORY, &result)) if(aglDescribeRenderer(rendererInfo, AGL_VIDEO_MEMORY, &result))
{ {
// llinfos << "createContext: aglDescribeRenderer(AGL_VIDEO_MEMORY) returned " << result << llendl; // LL_INFOS() << "createContext: aglDescribeRenderer(AGL_VIDEO_MEMORY) returned " << result << LL_ENDL;
gGLManager.mVRAM = result / (1024 * 1024); gGLManager.mVRAM = result / (1024 * 1024);
} }
else else
{ {
// llinfos << "createContext: aglDescribeRenderer(AGL_VIDEO_MEMORY) failed." << llendl; // LL_INFOS() << "createContext: aglDescribeRenderer(AGL_VIDEO_MEMORY) failed." << LL_ENDL;
} }
// This could be useful at some point, if it takes into account the memory already used by screen buffers, etc... // This could be useful at some point, if it takes into account the memory already used by screen buffers, etc...
if(aglDescribeRenderer(rendererInfo, AGL_TEXTURE_MEMORY, &result)) if(aglDescribeRenderer(rendererInfo, AGL_TEXTURE_MEMORY, &result))
{ {
// llinfos << "createContext: aglDescribeRenderer(AGL_TEXTURE_MEMORY) returned " << result << llendl; // LL_INFOS() << "createContext: aglDescribeRenderer(AGL_TEXTURE_MEMORY) returned " << result << LL_ENDL;
} }
else else
{ {
// llinfos << "createContext: aglDescribeRenderer(AGL_TEXTURE_MEMORY) failed." << llendl; // LL_INFOS() << "createContext: aglDescribeRenderer(AGL_TEXTURE_MEMORY) failed." << LL_ENDL;
} }
aglDestroyRendererInfo(rendererInfo); aglDestroyRendererInfo(rendererInfo);
...@@ -1188,7 +1188,7 @@ BOOL LLWindowMacOSX::getPosition(LLCoordScreen *position) ...@@ -1188,7 +1188,7 @@ BOOL LLWindowMacOSX::getPosition(LLCoordScreen *position)
} }
else else
{ {
llerrs << "LLWindowMacOSX::getPosition(): no window and not fullscreen!" << llendl; LL_ERRS() << "LLWindowMacOSX::getPosition(): no window and not fullscreen!" << LL_ENDL;
} }
return (err == noErr); return (err == noErr);
...@@ -1214,7 +1214,7 @@ BOOL LLWindowMacOSX::getSize(LLCoordScreen *size) ...@@ -1214,7 +1214,7 @@ BOOL LLWindowMacOSX::getSize(LLCoordScreen *size)
} }
else else
{ {
llerrs << "LLWindowMacOSX::getPosition(): no window and not fullscreen!" << llendl; LL_ERRS() << "LLWindowMacOSX::getPosition(): no window and not fullscreen!" << LL_ENDL;
} }
return (err == noErr); return (err == noErr);
...@@ -1240,7 +1240,7 @@ BOOL LLWindowMacOSX::getSize(LLCoordWindow *size) ...@@ -1240,7 +1240,7 @@ BOOL LLWindowMacOSX::getSize(LLCoordWindow *size)
} }
else else
{ {
llerrs << "LLWindowMacOSX::getPosition(): no window and not fullscreen!" << llendl; LL_ERRS() << "LLWindowMacOSX::getPosition(): no window and not fullscreen!" << LL_ENDL;
} }
return (err == noErr); return (err == noErr);
...@@ -1284,7 +1284,7 @@ BOOL LLWindowMacOSX::setSizeImpl(const LLCoordWindow size) ...@@ -1284,7 +1284,7 @@ BOOL LLWindowMacOSX::setSizeImpl(const LLCoordWindow size)
} }
else else
{ {
llinfos << "Error setting size" << err << llendl; LL_INFOS() << "Error setting size" << err << LL_ENDL;
return FALSE; return FALSE;
} }
} }
...@@ -1410,11 +1410,11 @@ void LLWindowMacOSX::setMouseClipping( BOOL b ) ...@@ -1410,11 +1410,11 @@ void LLWindowMacOSX::setMouseClipping( BOOL b )
if(b) if(b)
{ {
// llinfos << "setMouseClipping(TRUE)" << llendl; // LL_INFOS() << "setMouseClipping(TRUE)" << LL_ENDL;
} }
else else
{ {
// llinfos << "setMouseClipping(FALSE)" << llendl; // LL_INFOS() << "setMouseClipping(FALSE)" << LL_ENDL;
} }
adjustCursorDecouple(); adjustCursorDecouple();
...@@ -1432,7 +1432,7 @@ BOOL LLWindowMacOSX::setCursorPosition(const LLCoordWindow position) ...@@ -1432,7 +1432,7 @@ BOOL LLWindowMacOSX::setCursorPosition(const LLCoordWindow position)
CGPoint newPosition; CGPoint newPosition;
// llinfos << "setCursorPosition(" << screen_pos.mX << ", " << screen_pos.mY << ")" << llendl; // LL_INFOS() << "setCursorPosition(" << screen_pos.mX << ", " << screen_pos.mY << ")" << LL_ENDL;
newPosition.x = screen_pos.mX; newPosition.x = screen_pos.mX;
newPosition.y = screen_pos.mY; newPosition.y = screen_pos.mY;
...@@ -1484,7 +1484,7 @@ BOOL LLWindowMacOSX::getCursorPosition(LLCoordWindow *position) ...@@ -1484,7 +1484,7 @@ BOOL LLWindowMacOSX::getCursorPosition(LLCoordWindow *position)
// gets the mouse location in local coordinates // gets the mouse location in local coordinates
::GetMouse(&cursor_point); ::GetMouse(&cursor_point);
// lldebugs << "getCursorPosition(): cursor is at " << cursor_point.h << ", " << cursor_point.v << " port origin: " << portrect.left << ", " << portrect.top << llendl; // LL_DEBUGS() << "getCursorPosition(): cursor is at " << cursor_point.h << ", " << cursor_point.v << " port origin: " << portrect.left << ", " << portrect.top << LL_ENDL;
::SetPort(save); ::SetPort(save);
...@@ -1518,7 +1518,7 @@ void LLWindowMacOSX::adjustCursorDecouple(bool warpingMouse) ...@@ -1518,7 +1518,7 @@ void LLWindowMacOSX::adjustCursorDecouple(bool warpingMouse)
// The cursor should be decoupled. Make sure it is. // The cursor should be decoupled. Make sure it is.
if(!mCursorDecoupled) if(!mCursorDecoupled)
{ {
// llinfos << "adjustCursorDecouple: decoupling cursor" << llendl; // LL_INFOS() << "adjustCursorDecouple: decoupling cursor" << LL_ENDL;
CGAssociateMouseAndMouseCursorPosition(false); CGAssociateMouseAndMouseCursorPosition(false);
mCursorDecoupled = true; mCursorDecoupled = true;
FlushSpecificEventsFromQueue(GetCurrentEventQueue(), mMoveEventCampartorUPP, NULL); FlushSpecificEventsFromQueue(GetCurrentEventQueue(), mMoveEventCampartorUPP, NULL);
...@@ -1531,7 +1531,7 @@ void LLWindowMacOSX::adjustCursorDecouple(bool warpingMouse) ...@@ -1531,7 +1531,7 @@ void LLWindowMacOSX::adjustCursorDecouple(bool warpingMouse)
// The cursor should not be decoupled. Make sure it isn't. // The cursor should not be decoupled. Make sure it isn't.
if(mCursorDecoupled) if(mCursorDecoupled)
{ {
// llinfos << "adjustCursorDecouple: recoupling cursor" << llendl; // LL_INFOS() << "adjustCursorDecouple: recoupling cursor" << LL_ENDL;
CGAssociateMouseAndMouseCursorPosition(true); CGAssociateMouseAndMouseCursorPosition(true);
mCursorDecoupled = false; mCursorDecoupled = false;
} }
...@@ -1636,7 +1636,7 @@ void LLWindowMacOSX::flashIcon(F32 seconds) ...@@ -1636,7 +1636,7 @@ void LLWindowMacOSX::flashIcon(F32 seconds)
else else
{ {
// This is very not-fatal (only problem is the icon will not bounce), but we'd like to find out about it somehow... // This is very not-fatal (only problem is the icon will not bounce), but we'd like to find out about it somehow...
llinfos << "NMInstall failed with error code " << err << llendl; LL_INFOS() << "NMInstall failed with error code " << err << LL_ENDL;
} }
} }
} }
...@@ -2666,28 +2666,28 @@ OSStatus LLWindowMacOSX::eventHandler (EventHandlerCallRef myHandler, EventRef e ...@@ -2666,28 +2666,28 @@ OSStatus LLWindowMacOSX::eventHandler (EventHandlerCallRef myHandler, EventRef e
break; break;
case kEventWindowHidden: case kEventWindowHidden:
// llinfos << "LLWindowMacOSX: Deactivating on hide" << llendl; // LL_INFOS() << "LLWindowMacOSX: Deactivating on hide" << LL_ENDL;
mMinimized = TRUE; mMinimized = TRUE;
mCallbacks->handleActivate(this, false); mCallbacks->handleActivate(this, false);
// result = noErr; // result = noErr;
break; break;
case kEventWindowShown: case kEventWindowShown:
// llinfos << "LLWindowMacOSX: Activating on show" << llendl; // LL_INFOS() << "LLWindowMacOSX: Activating on show" << LL_ENDL;
mMinimized = FALSE; mMinimized = FALSE;
mCallbacks->handleActivate(this, true); mCallbacks->handleActivate(this, true);
// result = noErr; // result = noErr;
break; break;
case kEventWindowCollapsed: case kEventWindowCollapsed:
// llinfos << "LLWindowMacOSX: Deactivating on collapse" << llendl; // LL_INFOS() << "LLWindowMacOSX: Deactivating on collapse" << LL_ENDL;
mMinimized = TRUE; mMinimized = TRUE;
mCallbacks->handleActivate(this, false); mCallbacks->handleActivate(this, false);
// result = noErr; // result = noErr;
break; break;
case kEventWindowExpanded: case kEventWindowExpanded:
// llinfos << "LLWindowMacOSX: Activating on expand" << llendl; // LL_INFOS() << "LLWindowMacOSX: Activating on expand" << LL_ENDL;
mMinimized = FALSE; mMinimized = FALSE;
mCallbacks->handleActivate(this, true); mCallbacks->handleActivate(this, true);
// result = noErr; // result = noErr;
...@@ -2853,7 +2853,7 @@ const char* cursorIDToName(int id) ...@@ -2853,7 +2853,7 @@ const char* cursorIDToName(int id)
case UI_CURSOR_TOOLNO: return "UI_CURSOR_NO"; case UI_CURSOR_TOOLNO: return "UI_CURSOR_NO";
} }
llerrs << "cursorIDToName: unknown cursor id" << id << llendl; LL_ERRS() << "cursorIDToName: unknown cursor id" << id << LL_ENDL;
return "UI_CURSOR_ARROW"; return "UI_CURSOR_ARROW";
} }
...@@ -3036,14 +3036,14 @@ void LLWindowMacOSX::hideCursor() ...@@ -3036,14 +3036,14 @@ void LLWindowMacOSX::hideCursor()
{ {
if(!mCursorHidden) if(!mCursorHidden)
{ {
// llinfos << "hideCursor: hiding" << llendl; // LL_INFOS() << "hideCursor: hiding" << LL_ENDL;
mCursorHidden = TRUE; mCursorHidden = TRUE;
mHideCursorPermanent = TRUE; mHideCursorPermanent = TRUE;
::HideCursor(); ::HideCursor();
} }
else else
{ {
// llinfos << "hideCursor: already hidden" << llendl; // LL_INFOS() << "hideCursor: already hidden" << LL_ENDL;
} }
adjustCursorDecouple(); adjustCursorDecouple();
...@@ -3053,14 +3053,14 @@ void LLWindowMacOSX::showCursor() ...@@ -3053,14 +3053,14 @@ void LLWindowMacOSX::showCursor()
{ {
if(mCursorHidden) if(mCursorHidden)
{ {
// llinfos << "showCursor: showing" << llendl; // LL_INFOS() << "showCursor: showing" << LL_ENDL;
mCursorHidden = FALSE; mCursorHidden = FALSE;
mHideCursorPermanent = FALSE; mHideCursorPermanent = FALSE;
::ShowCursor(); ::ShowCursor();
} }
else else
{ {
// llinfos << "showCursor: already visible" << llendl; // LL_INFOS() << "showCursor: already visible" << LL_ENDL;
} }
adjustCursorDecouple(); adjustCursorDecouple();
...@@ -3272,14 +3272,14 @@ void LLWindowMacOSX::spawnWebBrowser(const std::string& escaped_url, bool async) ...@@ -3272,14 +3272,14 @@ void LLWindowMacOSX::spawnWebBrowser(const std::string& escaped_url, bool async)
if (!found) if (!found)
{ {
llwarns << "spawn_web_browser called for url with protocol not on whitelist: " << escaped_url << llendl; LL_WARNS() << "spawn_web_browser called for url with protocol not on whitelist: " << escaped_url << LL_ENDL;
return; return;
} }
OSStatus result = noErr; OSStatus result = noErr;
CFURLRef urlRef = NULL; CFURLRef urlRef = NULL;
llinfos << "Opening URL " << escaped_url << llendl; LL_INFOS() << "Opening URL " << escaped_url << LL_ENDL;
CFStringRef stringRef = CFStringCreateWithCString(NULL, escaped_url.c_str(), kCFStringEncodingUTF8); CFStringRef stringRef = CFStringCreateWithCString(NULL, escaped_url.c_str(), kCFStringEncodingUTF8);
if (stringRef) if (stringRef)
...@@ -3299,14 +3299,14 @@ void LLWindowMacOSX::spawnWebBrowser(const std::string& escaped_url, bool async) ...@@ -3299,14 +3299,14 @@ void LLWindowMacOSX::spawnWebBrowser(const std::string& escaped_url, bool async)
if (result != noErr) if (result != noErr)
{ {
llinfos << "Error " << result << " on open." << llendl; LL_INFOS() << "Error " << result << " on open." << LL_ENDL;
} }
CFRelease(urlRef); CFRelease(urlRef);
} }
else else
{ {
llinfos << "Error: couldn't create URL." << llendl; LL_INFOS() << "Error: couldn't create URL." << LL_ENDL;
} }
} }
...@@ -3359,7 +3359,7 @@ LLSD LLWindowMacOSX::getNativeKeyData() ...@@ -3359,7 +3359,7 @@ LLSD LLWindowMacOSX::getNativeKeyData()
} }
lldebugs << "native key data is: " << result << llendl; LL_DEBUGS() << "native key data is: " << result << LL_ENDL;
return result; return result;
} }
...@@ -3560,7 +3560,7 @@ OSErr LLWindowMacOSX::dragTrackingHandler(DragTrackingMessage message, WindowRef ...@@ -3560,7 +3560,7 @@ OSErr LLWindowMacOSX::dragTrackingHandler(DragTrackingMessage message, WindowRef
OSErr result = noErr; OSErr result = noErr;
LLWindowMacOSX *self = (LLWindowMacOSX*)handlerRefCon; LLWindowMacOSX *self = (LLWindowMacOSX*)handlerRefCon;
lldebugs << "drag tracking handler, message = " << message << llendl; LL_DEBUGS() << "drag tracking handler, message = " << message << LL_ENDL;
switch(message) switch(message)
{ {
......
...@@ -46,7 +46,7 @@ LLWindowMesaHeadless::LLWindowMesaHeadless(LLWindowCallbacks* callbacks, ...@@ -46,7 +46,7 @@ LLWindowMesaHeadless::LLWindowMesaHeadless(LLWindowCallbacks* callbacks,
{ {
if (use_gl) if (use_gl)
{ {
llinfos << "MESA Init" << llendl; LL_INFOS() << "MESA Init" << LL_ENDL;
mMesaContext = OSMesaCreateContextExt( GL_RGBA, 32, 0, 0, NULL ); mMesaContext = OSMesaCreateContextExt( GL_RGBA, 32, 0, 0, NULL );
/* Allocate the image buffer */ /* Allocate the image buffer */
...@@ -58,7 +58,7 @@ LLWindowMesaHeadless::LLWindowMesaHeadless(LLWindowCallbacks* callbacks, ...@@ -58,7 +58,7 @@ LLWindowMesaHeadless::LLWindowMesaHeadless(LLWindowCallbacks* callbacks,
/* Bind the buffer to the context and make it current */ /* Bind the buffer to the context and make it current */
if (!OSMesaMakeCurrent( mMesaContext, mMesaBuffer, MESA_CHANNEL_TYPE, width, height )) if (!OSMesaMakeCurrent( mMesaContext, mMesaBuffer, MESA_CHANNEL_TYPE, width, height ))
{ {
llerrs << "MESA: OSMesaMakeCurrent failed!" << llendl; LL_ERRS() << "MESA: OSMesaMakeCurrent failed!" << LL_ENDL;
} }
llverify(gGLManager.initGL()); llverify(gGLManager.initGL());
......
This diff is collapsed.
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment