Closed Ghabry closed 11 years ago
Working on this, problem is basicly that pixman does not verify the target rectangle if it is out of bounds -> overwrites memory.
void PixmanBitmap::MaskBlit(int x, int y, Bitmap* _src, Rect src_rect) {
PixmanBitmap* src = (PixmanBitmap*) _src;
++ // Check here, other funcs affected, too
pixman_image_composite32(PIXMAN_OP_DISJOINT_IN_REVERSE,
src->bitmap, (pixman_image_t*) NULL, bitmap,
-- src_rect.x, src_rect.y,
0, 0,
x, y,
-- src_rect.width, src_rect.height);
RefreshCallback();
}
Indirectly fixed by #78. Shinonome looks far superior so nobody will miss this font...
When using RMG2000.fon (the 2nd font installed by the RPG Maker, RM2000.fon works fine) the Visual Studio Debugger reports a heap corruption.
Edit: This also happens when I move RM2000.fon in the Font folder, loading from C:\Windows\Fonts works fine. Maybe also file finder related?
Call stack: