More 32bit fixes
This commit is contained in:
parent
1365eafce5
commit
9ed980a511
@ -391,7 +391,7 @@ resize_pty(ChildMonitor *self, PyObject *args) {
|
|||||||
if (fd == -1) FIND(add_queue, add_queue_count);
|
if (fd == -1) FIND(add_queue, add_queue_count);
|
||||||
if (fd != -1) {
|
if (fd != -1) {
|
||||||
if (!pty_resize(fd, &dim)) PyErr_SetFromErrno(PyExc_OSError);
|
if (!pty_resize(fd, &dim)) PyErr_SetFromErrno(PyExc_OSError);
|
||||||
} else fprintf(stderr, "Failed to send resize signal to child with id: %lu (children count: %u) (add queue: %lu)\n", window_id, self->count, add_queue_count);
|
} else fprintf(stderr, "Failed to send resize signal to child with id: %lu (children count: %u) (add queue: %zu)\n", window_id, self->count, add_queue_count);
|
||||||
children_mutex(unlock);
|
children_mutex(unlock);
|
||||||
if (PyErr_Occurred()) return NULL;
|
if (PyErr_Occurred()) return NULL;
|
||||||
Py_RETURN_NONE;
|
Py_RETURN_NONE;
|
||||||
|
|||||||
@ -130,7 +130,8 @@ set_font_size(Face *self, FT_F26Dot6 char_width, FT_F26Dot6 char_height, FT_UInt
|
|||||||
bool
|
bool
|
||||||
set_size_for_face(PyObject *s, unsigned int desired_height, bool force) {
|
set_size_for_face(PyObject *s, unsigned int desired_height, bool force) {
|
||||||
Face *self = (Face*)s;
|
Face *self = (Face*)s;
|
||||||
FT_UInt w = (FT_UInt)(ceil(global_state.font_sz_in_pts * 64.0)), xdpi = (FT_UInt)global_state.logical_dpi_x, ydpi = (FT_UInt)global_state.logical_dpi_y;
|
FT_F26Dot6 w = (FT_F26Dot6)(ceil(global_state.font_sz_in_pts * 64.0));
|
||||||
|
FT_UInt xdpi = (FT_UInt)global_state.logical_dpi_x, ydpi = (FT_UInt)global_state.logical_dpi_y;
|
||||||
if (!force && (self->char_width == w && self->char_height == w && self->xdpi == xdpi && self->ydpi == ydpi)) return true;
|
if (!force && (self->char_width == w && self->char_height == w && self->xdpi == xdpi && self->ydpi == ydpi)) return true;
|
||||||
((Face*)self)->size_in_pts = global_state.font_sz_in_pts;
|
((Face*)self)->size_in_pts = global_state.font_sz_in_pts;
|
||||||
return set_font_size(self, w, w, xdpi, ydpi, desired_height);
|
return set_font_size(self, w, w, xdpi, ydpi, desired_height);
|
||||||
|
|||||||
@ -161,7 +161,7 @@ url_end_at(Line *self, PyObject *x) {
|
|||||||
static PyObject*
|
static PyObject*
|
||||||
text_at(Line* self, Py_ssize_t xval) {
|
text_at(Line* self, Py_ssize_t xval) {
|
||||||
#define text_at_doc "[x] -> Return the text in the specified cell"
|
#define text_at_doc "[x] -> Return the text in the specified cell"
|
||||||
if (xval >= self->xnum) { PyErr_SetString(PyExc_IndexError, "Column number out of bounds"); return NULL; }
|
if ((unsigned)xval >= self->xnum) { PyErr_SetString(PyExc_IndexError, "Column number out of bounds"); return NULL; }
|
||||||
return line_text_at(self->cells[xval].ch, self->cells[xval].cc);
|
return line_text_at(self->cells[xval].ch, self->cells[xval].cc);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user