Windows CE changes (from <Someone>)
The changes did not apply to the main trunk as easily as I wouuld have hoped, so I attempted a number of manual applications. I hope <Someone> can tell me if there is a problem. Changelist: - bugfix: help text windows close immediately after open (unhandled WM_KEYDOWN in mhtext.c) - bugfix: action button uses hero coordinates instead of cursor position - pocketpc: bugfix: menu window closes on up/down keys from first/last position - smartphone: do not translate input when command helper is hidden (fixes Motorola Q keyboard bug) - smartphone: new keypad layouts - smartphone: wizard mode command layout - smartphone: option to feed arbitrary text as a command to nethack core - wrap/unwrap text option for text windows - hardware keyboard detection - hide keypad when hardware keyboard is present - backport message window highlighting from winnt port - new icon with recommended image sizes
This commit is contained in:
+13
-1
@@ -96,7 +96,9 @@ void mswin_add_text(PNHTextBuffer pb, int attr, const char* text)
|
||||
|
||||
/* if there are 3 (or more) consecutive spaces inside the string
|
||||
consider it formatted */
|
||||
new_line->formatted = (strstr(new_line->text, " ")!=NULL);
|
||||
new_line->formatted =
|
||||
(strstr(new_line->text, " ")!=NULL)
|
||||
|| (new_line->beg_padding>8);
|
||||
} else {
|
||||
new_line->end_padding = 0;
|
||||
new_line->text[0] = 0;
|
||||
@@ -105,6 +107,16 @@ void mswin_add_text(PNHTextBuffer pb, int attr, const char* text)
|
||||
pb->n_used++;
|
||||
}
|
||||
/*----------------------------------------------------------------*/
|
||||
void mswin_set_text_wrap(PNHTextBuffer pb, BOOL wrap_text)
|
||||
{
|
||||
pb->b_wrap_text = wrap_text;
|
||||
}
|
||||
/*----------------------------------------------------------------*/
|
||||
BOOL mswin_get_text_wrap(PNHTextBuffer pb)
|
||||
{
|
||||
return pb->b_wrap_text;
|
||||
}
|
||||
/*----------------------------------------------------------------*/
|
||||
static TCHAR* nh_append( TCHAR* s, int* size, const char* ap )
|
||||
{
|
||||
int tlen, tnewlen;
|
||||
|
||||
Reference in New Issue
Block a user