win32_gui: follow-up bit on x64 patch (premature optimization)
This commit is contained in:
@@ -28,9 +28,9 @@ typedef struct mswin_nhmsg_add_wnd {
|
|||||||
} MSNHMsgAddWnd, *PMSNHMsgAddWnd;
|
} MSNHMsgAddWnd, *PMSNHMsgAddWnd;
|
||||||
|
|
||||||
typedef struct mswin_nhmsg_putstr {
|
typedef struct mswin_nhmsg_putstr {
|
||||||
int attr;
|
int attr;
|
||||||
const char* text;
|
const char* text;
|
||||||
boolean append;
|
int append;
|
||||||
} MSNHMsgPutstr, *PMSNHMsgPutstr;
|
} MSNHMsgPutstr, *PMSNHMsgPutstr;
|
||||||
|
|
||||||
typedef struct mswin_nhmsg_print_glyph {
|
typedef struct mswin_nhmsg_print_glyph {
|
||||||
|
|||||||
@@ -988,7 +988,7 @@ void mswin_putstr_ex(winid wid, int attr, const char *text, int app)
|
|||||||
ZeroMemory(&data, sizeof(data));
|
ZeroMemory(&data, sizeof(data));
|
||||||
data.attr = attr;
|
data.attr = attr;
|
||||||
data.text = text;
|
data.text = text;
|
||||||
data.append = !!app;
|
data.append = app;
|
||||||
SendMessage(
|
SendMessage(
|
||||||
GetNHApp()->windowlist[wid].win,
|
GetNHApp()->windowlist[wid].win,
|
||||||
WM_MSNH_COMMAND, (WPARAM)MSNH_MSG_PUTSTR, (LPARAM)&data );
|
WM_MSNH_COMMAND, (WPARAM)MSNH_MSG_PUTSTR, (LPARAM)&data );
|
||||||
|
|||||||
Reference in New Issue
Block a user