mirror of
https://github.com/VARCem/PDCurses.git
synced 2026-09-23 15:25:01 +00:00
We can now revert resized to a bool.
This commit is contained in:
4
curses.h
4
curses.h
@@ -28,7 +28,7 @@ Defined by this header:
|
||||
**man-end****************************************************************/
|
||||
|
||||
#define PDCURSES 1 /* PDCurses-only routines */
|
||||
#define PDC_BUILD 3804
|
||||
#define PDC_BUILD 3805
|
||||
#define PDC_VER_MAJOR 3
|
||||
#define PDC_VER_MINOR 8
|
||||
#define PDC_VERDOT "3.8"
|
||||
@@ -314,7 +314,7 @@ typedef struct
|
||||
bool raw_out; /* raw output mode (7 v. 8 bits) */
|
||||
bool audible; /* FALSE if the bell is visual */
|
||||
bool mono; /* TRUE if current screen is mono */
|
||||
short resized; /* TRUE if TERM has been resized */
|
||||
bool resized; /* TRUE if TERM has been resized */
|
||||
bool orig_attr; /* TRUE if we have the original colors */
|
||||
short orig_fore; /* original screen foreground color */
|
||||
short orig_back; /* original screen foreground color */
|
||||
|
||||
@@ -85,16 +85,13 @@ int XC_read_socket(int sock_num, void *buf, int len)
|
||||
"resized: %d\n", XCLOGMSG, rc, errno, SP->resized);
|
||||
#endif
|
||||
if (rc < 0 && sock_num == xc_key_sock && errno == EINTR
|
||||
&& SP->resized != FALSE)
|
||||
&& SP->resized)
|
||||
{
|
||||
MOUSE_LOG(("%s:continuing\n", XCLOGMSG));
|
||||
|
||||
rc = 0;
|
||||
|
||||
if (SP->resized > 1)
|
||||
SP->resized = TRUE;
|
||||
else
|
||||
SP->resized = FALSE;
|
||||
SP->resized = FALSE;
|
||||
|
||||
memcpy(buf, &rc, sizeof(int));
|
||||
|
||||
|
||||
@@ -2660,7 +2660,7 @@ static void _handle_structure_notify(Widget w, XtPointer client_data,
|
||||
|
||||
after_first_curses_request = FALSE;
|
||||
|
||||
SP->resized = 1;
|
||||
SP->resized = TRUE;
|
||||
|
||||
_send_key_to_curses(KEY_RESIZE, NULL, TRUE);
|
||||
break;
|
||||
|
||||
@@ -2342,7 +2342,7 @@ static void _handle_structure_notify(Widget w, XtPointer client_data,
|
||||
resize_window_width = event->xconfigure.width;
|
||||
resize_window_height = event->xconfigure.height;
|
||||
|
||||
SP->resized = 1;
|
||||
SP->resized = TRUE;
|
||||
xc_resize_now = TRUE;
|
||||
break;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user