mirror of
https://github.com/fltk/fltk.git
synced 2026-06-02 15:46:52 +08:00
more indentation fixes in src/Fl_win32.cxx
git-svn-id: file:///fltk/svn/fltk/branches/branch-1.3@6668 ea41ed52-d2ee-0310-a9c1-e6b18d33e121
This commit is contained in:
+3
-6
@@ -602,8 +602,7 @@ void Fl::paste(Fl_Widget &receiver, int clipboard) {
|
|||||||
HANDLE h = GetClipboardData(CF_UNICODETEXT);
|
HANDLE h = GetClipboardData(CF_UNICODETEXT);
|
||||||
if (h) {
|
if (h) {
|
||||||
wchar_t *memLock = (wchar_t*) GlobalLock(h);
|
wchar_t *memLock = (wchar_t*) GlobalLock(h);
|
||||||
int utf16_len =
|
int utf16_len = wcslen(memLock);
|
||||||
wcslen(memLock);
|
|
||||||
Fl::e_text = (char*) malloc (utf16_len * 4 + 1);
|
Fl::e_text = (char*) malloc (utf16_len * 4 + 1);
|
||||||
int utf8_len = fl_utf8fromwc(Fl::e_text, utf16_len * 4, memLock, utf16_len);
|
int utf8_len = fl_utf8fromwc(Fl::e_text, utf16_len * 4, memLock, utf16_len);
|
||||||
*(Fl::e_text + utf8_len) = 0;
|
*(Fl::e_text + utf8_len) = 0;
|
||||||
@@ -631,8 +630,7 @@ void fl_get_codepage()
|
|||||||
HKL hkl = GetKeyboardLayout(0);
|
HKL hkl = GetKeyboardLayout(0);
|
||||||
TCHAR ld[8];
|
TCHAR ld[8];
|
||||||
|
|
||||||
GetLocaleInfo (LOWORD(hkl),
|
GetLocaleInfo (LOWORD(hkl), LOCALE_IDEFAULTANSICODEPAGE, ld, 6);
|
||||||
LOCALE_IDEFAULTANSICODEPAGE, ld, 6);
|
|
||||||
DWORD ccp = atol(ld);
|
DWORD ccp = atol(ld);
|
||||||
fl_is_ime = 0;
|
fl_is_ime = 0;
|
||||||
|
|
||||||
@@ -1170,7 +1168,6 @@ static LRESULT CALLBACK WndProc(HWND hWnd, UINT uMsg, WPARAM wParam, LPARAM lPar
|
|||||||
SetClipboardData(CF_UNICODETEXT, h);
|
SetClipboardData(CF_UNICODETEXT, h);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
// Windoze also seems unhappy if I don't do this. Documentation very
|
// Windoze also seems unhappy if I don't do this. Documentation very
|
||||||
// unclear on what is correct:
|
// unclear on what is correct:
|
||||||
if (fl_msg.message == WM_RENDERALLFORMATS) CloseClipboard();
|
if (fl_msg.message == WM_RENDERALLFORMATS) CloseClipboard();
|
||||||
@@ -1338,7 +1335,7 @@ void Fl_Window::resize(int X,int Y,int W,int H) {
|
|||||||
/*
|
/*
|
||||||
* This silly little class remembers the name of all window classes
|
* This silly little class remembers the name of all window classes
|
||||||
* we register to avoid double registration. It has the added bonus
|
* we register to avoid double registration. It has the added bonus
|
||||||
* of freeing everything on application colse as well.
|
* of freeing everything on application close as well.
|
||||||
*/
|
*/
|
||||||
class NameList {
|
class NameList {
|
||||||
public:
|
public:
|
||||||
|
|||||||
Reference in New Issue
Block a user