This commit is contained in:
Kovid Goyal 2017-11-01 10:44:03 +05:30
parent 6a2f964123
commit 5a044c0320
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 2 deletions

View File

@ -195,7 +195,7 @@ static inline void clear_canvas(void) { memset(canvas, 0, cell_width * cell_heig
static void
python_send_to_gpu(unsigned int x, unsigned int y, unsigned int z, uint8_t* buf) {
if (python_send_to_gpu_impl) {
PyObject *ret = PyObject_CallFunction(python_send_to_gpu_impl, "IIIy#", x, y, z, buf, cell_width * cell_height);
PyObject *ret = PyObject_CallFunction(python_send_to_gpu_impl, "IIIy#", x, y, z, buf, (int)(cell_width * cell_height));
if (ret == NULL) PyErr_Print();
else Py_DECREF(ret);
}

View File

@ -20,7 +20,6 @@ class Rendering(BaseTest):
cls.sprites[(x, y, z)] = data
set_send_sprite_to_gpu(send_to_gpu)
cls.cell_width, cls.cell_height = set_font_family(override_dpi=(96.0, 96.0))
@classmethod
def tearDownClass(cls):
@ -29,6 +28,7 @@ class Rendering(BaseTest):
def setUp(self):
self.sprites.clear()
self.cell_width, self.cell_height = set_font_family(override_dpi=(96.0, 96.0))
def tearDown(self):
self.sprites.clear()