...
This commit is contained in:
parent
6a2f964123
commit
5a044c0320
@ -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);
|
||||
}
|
||||
|
||||
@ -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()
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user