diff options
Diffstat (limited to 'indra/llwindow')
| -rw-r--r-- | indra/llwindow/llwindowmacosx.cpp | 9 | ||||
| -rw-r--r-- | indra/llwindow/llwindowwin32.cpp | 6 | 
2 files changed, 15 insertions, 0 deletions
| diff --git a/indra/llwindow/llwindowmacosx.cpp b/indra/llwindow/llwindowmacosx.cpp index 924acaf148..224314a490 100644 --- a/indra/llwindow/llwindowmacosx.cpp +++ b/indra/llwindow/llwindowmacosx.cpp @@ -2807,6 +2807,9 @@ const char* cursorIDToName(int id)  		case UI_CURSOR_TOOLPAUSE:		return "UI_CURSOR_TOOLPAUSE";  		case UI_CURSOR_TOOLMEDIAOPEN:	return "UI_CURSOR_TOOLMEDIAOPEN";  		case UI_CURSOR_PIPETTE:			return "UI_CURSOR_PIPETTE";		 +		case UI_CURSOR_TOOLSIT:			return "UI_CURSOR_TOOLSIT"; +		case UI_CURSOR_TOOLBUY:			return "UI_CURSOR_TOOLBUY"; +		case UI_CURSOR_TOOLOPEN:		return "UI_CURSOR_TOOLOPEN";  	}  	llerrs << "cursorIDToName: unknown cursor id" << id << llendl; @@ -2909,6 +2912,9 @@ void LLWindowMacOSX::setCursor(ECursorType cursor)  	case UI_CURSOR_TOOLPLAY:  	case UI_CURSOR_TOOLPAUSE:  	case UI_CURSOR_TOOLMEDIAOPEN: +	case UI_CURSOR_TOOLSIT: +	case UI_CURSOR_TOOLBUY: +	case UI_CURSOR_TOOLOPEN:  		result = setImageCursor(gCursors[cursor]);  		break; @@ -2950,6 +2956,9 @@ void LLWindowMacOSX::initCursors()  	initPixmapCursor(UI_CURSOR_TOOLPLAY, 1, 1);  	initPixmapCursor(UI_CURSOR_TOOLPAUSE, 1, 1);  	initPixmapCursor(UI_CURSOR_TOOLMEDIAOPEN, 1, 1); +	initPixmapCursor(UI_CURSOR_TOOLSIT, 20, 15); +	initPixmapCursor(UI_CURSOR_TOOLBUY, 20, 15); +	initPixmapCursor(UI_CURSOR_TOOLOPEN, 20, 15);  	initPixmapCursor(UI_CURSOR_SIZENWSE, 10, 10);  	initPixmapCursor(UI_CURSOR_SIZENESW, 10, 10); diff --git a/indra/llwindow/llwindowwin32.cpp b/indra/llwindow/llwindowwin32.cpp index 4be5d06c2b..5f778d6208 100644 --- a/indra/llwindow/llwindowwin32.cpp +++ b/indra/llwindow/llwindowwin32.cpp @@ -46,6 +46,7 @@  #include "llerror.h"  #include "llgl.h"  #include "llstring.h" +#include "lldir.h"  // System includes  #include <commdlg.h> @@ -1545,6 +1546,11 @@ void LLWindowWin32::initCursors()  	mCursor[ UI_CURSOR_PIPETTE ] = LoadCursor(module, TEXT("TOOLPIPETTE"));  	// Color cursors +	gDirUtilp->getExpandedFilename(LL_PATH_EXECUTABLE, "res", "toolbuy.cur"); + +	mCursor[UI_CURSOR_TOOLSIT] = LoadCursorFromFile(utf8str_to_utf16str(gDirUtilp->getWorkingDir() + gDirUtilp->getDirDelimiter() + "res" + gDirUtilp->getDirDelimiter() + "toolsit.cur").c_str()); +	mCursor[UI_CURSOR_TOOLBUY] = LoadCursorFromFile(utf8str_to_utf16str(gDirUtilp->getWorkingDir() + gDirUtilp->getDirDelimiter() + "res" + gDirUtilp->getDirDelimiter() + "toolbuy.cur").c_str()); +	mCursor[UI_CURSOR_TOOLOPEN] = LoadCursorFromFile(utf8str_to_utf16str(gDirUtilp->getWorkingDir() + gDirUtilp->getDirDelimiter() + "res" + gDirUtilp->getDirDelimiter() + "toolopen.cur").c_str());  	mCursor[UI_CURSOR_TOOLPLAY] = loadColorCursor(TEXT("TOOLPLAY"));  	mCursor[UI_CURSOR_TOOLPAUSE] = loadColorCursor(TEXT("TOOLPAUSE"));  	mCursor[UI_CURSOR_TOOLMEDIAOPEN] = loadColorCursor(TEXT("TOOLMEDIAOPEN")); | 
