Tests for displaying graphics

This commit is contained in:
Kovid Goyal
2017-10-03 16:10:04 +05:30
parent aec1612de2
commit c87dcdbe3c
5 changed files with 92 additions and 27 deletions
+6
View File
@@ -238,6 +238,11 @@ PYWRAP0(destroy_global_data) {
Py_RETURN_NONE;
}
PYWRAP1(set_display_state) {
PA("iiII", &global_state.viewport_width, &global_state.viewport_height, &global_state.cell_width, &global_state.cell_height);
Py_RETURN_NONE;
}
#define WF(name) PYWRAP1(name) { \
unsigned int tab_id, window_id; \
PyObject *title; \
@@ -275,6 +280,7 @@ static PyMethodDef module_methods[] = {
MW(set_window_render_data, METH_VARARGS),
MW(update_window_visibility, METH_VARARGS),
MW(set_boss, METH_O),
MW(set_display_state, METH_VARARGS),
MW(destroy_global_data, METH_NOARGS),
{NULL, NULL, 0, NULL} /* Sentinel */