hackathon-dev #1
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user