hackathon-dev #1

Merged
amy merged 101 commits from hackathon-dev into develop 2019-12-12 13:56:11 -07:00
2 changed files with 3 additions and 3 deletions
Showing only changes of commit 971826e118 - Show all commits

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;