more pushing of errors

This commit is contained in:
Amy Bowersox 2019-12-11 10:59:14 -07:00
parent 864360f9fa
commit 971826e118
2 changed files with 3 additions and 3 deletions

View File

@ -105,7 +105,7 @@ PyObject *Epython_wrap_bitmap(PBITMAP pbmp)
rc = PyType_GenericNew(&BitmapType, args, kwargs);
if (rc)
{
pbitmapobj = (BitmapObject)rc;
pbitmapobj = (BitmapObject *)rc;
BMP_Delete(pbitmapobj->pbmp);
pbitmapobj->pbmp = pbmp;
}

View File

@ -156,11 +156,11 @@ static PyObject *devctxt_select_bitmap(DevCtxtObject *self, BitmapObject *newbmp
old_bitmap = Epython_wrap_bitmap(old_pbmp);
if (!old_bitmap)
{
DC_SelectObject(self->pdctxt, old_pbmp);
DC_SelectObject(self->pdctxt, (PGFXOBJECT)old_pbmp);
return NULL;
}
else
PY_INCREF(old_bitmap);
Py_INCREF(old_bitmap);
}
Py_DECREF(self->selected_bitmap);
self->selected_bitmap = newbmp;