"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "src/celestia/winmain.cpp" between
Celestia-1.6.2.1.tar.gz and Celestia-1.6.2.2.tar.gz

About: Celestia is an OpenGL-based 3D space simulation that lets you travel through the solar system, to the stars, and even beyond the galaxy.

winmain.cpp  (Celestia-1.6.2.1):winmain.cpp  (Celestia-1.6.2.2)
skipping to change at line 153 skipping to change at line 153
#define REFMARKS 1 #define REFMARKS 1
#define INFINITE_MOUSE #define INFINITE_MOUSE
static int lastX = 0; static int lastX = 0;
static int lastY = 0; static int lastY = 0;
static bool ignoreNextMoveEvent = false; static bool ignoreNextMoveEvent = false;
static const WPARAM ID_GOTO_URL = 62000; static const WPARAM ID_GOTO_URL = 62000;
HWND hBookmarkTree; HWND hBookmarkTree;
char bookmarkName[33]; wchar_t bookmarkName[33];
static const string ScriptsDirectory = "scripts"; static const string ScriptsDirectory = "scripts";
static vector<ScriptMenuItem>* ScriptMenuItems = NULL; static vector<ScriptMenuItem>* ScriptMenuItems = NULL;
static LRESULT CALLBACK MainWindowProc(HWND hWnd, static LRESULT CALLBACK MainWindowProc(HWND hWnd,
UINT uMsg, UINT uMsg,
WPARAM wParam, LPARAM lParam); WPARAM wParam, LPARAM lParam);
#define MENU_CHOOSE_PLANET 32000 #define MENU_CHOOSE_PLANET 32000
#define MENU_CHOOSE_SURFACE 31000 #define MENU_CHOOSE_SURFACE 31000
skipping to change at line 1090 skipping to change at line 1090
{ {
//Center dialog directly over parent //Center dialog directly over parent
HWND hParent = GetParent(hDlg); HWND hParent = GetParent(hDlg);
CenterWindow(hParent, hDlg); CenterWindow(hParent, hDlg);
//Limit text of folder name to 32 chars //Limit text of folder name to 32 chars
HWND hEdit = GetDlgItem(hDlg, IDC_NEWBOOKMARK); HWND hEdit = GetDlgItem(hDlg, IDC_NEWBOOKMARK);
SendMessage(hEdit, EM_LIMITTEXT, 32, 0); SendMessage(hEdit, EM_LIMITTEXT, 32, 0);
//Set text in edit control to current bookmark name //Set text in edit control to current bookmark name
SetWindowText(hEdit, bookmarkName); SetWindowTextW(hEdit, bookmarkName);
return(TRUE); return(TRUE);
} }
case WM_COMMAND: case WM_COMMAND:
{ {
if (HIWORD(wParam) == EN_CHANGE) if (HIWORD(wParam) == EN_CHANGE)
{ {
HWND hOK = GetDlgItem(hDlg, IDOK); HWND hOK = GetDlgItem(hDlg, IDOK);
HWND hCancel = GetDlgItem(hDlg, IDCANCEL); HWND hCancel = GetDlgItem(hDlg, IDCANCEL);
skipping to change at line 1228 skipping to change at line 1228
else if (LOWORD(wParam) == IDC_ORGANIZE_BOOKMARKS_RENAME) else if (LOWORD(wParam) == IDC_ORGANIZE_BOOKMARKS_RENAME)
{ {
if (hBookmarkTree = GetDlgItem(hDlg, IDC_ORGANIZE_BOOKMARK_TREE)) if (hBookmarkTree = GetDlgItem(hDlg, IDC_ORGANIZE_BOOKMARK_TREE))
{ {
HTREEITEM hItem; HTREEITEM hItem;
TVITEMW tvItem; TVITEMW tvItem;
if (hItem = TreeView_GetSelection(hBookmarkTree)) if (hItem = TreeView_GetSelection(hBookmarkTree))
{ {
tvItem.hItem = hItem; tvItem.hItem = hItem;
tvItem.mask = TVIF_TEXT | TVIF_HANDLE; tvItem.mask = TVIF_TEXT | TVIF_HANDLE;
wstring itemName = CurrentCPToWide(bookmarkName); tvItem.pszText = bookmarkName;
tvItem.pszText = const_cast<wchar_t*>(itemName.c_str()); tvItem.cchTextMax = sizeof(bookmarkName) / sizeof(wchar_t);
tvItem.cchTextMax = sizeof(bookmarkName);
if (SendMessage(hBookmarkTree, TVM_GETITEMW, 0, (LPARAM)&tvI tem)) if (SendMessage(hBookmarkTree, TVM_GETITEMW, 0, (LPARAM)&tvI tem))
{ {
DialogBox(hRes, DialogBox(hRes,
MAKEINTRESOURCE(IDD_RENAME_BOOKMARK), MAKEINTRESOURCE(IDD_RENAME_BOOKMARK),
hDlg, (DLGPROC)RenameBookmarkProc); hDlg, (DLGPROC)RenameBookmarkProc);
} }
} }
} }
} }
else if (LOWORD(wParam) == IDC_ORGANIZE_BOOKMARKS_DELETE) else if (LOWORD(wParam) == IDC_ORGANIZE_BOOKMARKS_DELETE)
 End of changes. 3 change blocks. 
5 lines changed or deleted 4 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)