Fix libimg to execute emms after mmx code

Also, remove an emms hack from Dino game.
Fix #98.
This commit is contained in:
2025-02-24 01:40:31 +00:00
parent 54669d62b4
commit a11466d56b
6 changed files with 175 additions and 128 deletions

View File

@@ -22,7 +22,6 @@ void graphicsInit() {
}
dbg_printf("spriteAtlas->Type = %d\n", spriteAtlas->Type);
screenImage = img_create(DEFAULT_WIDTH, DEFAULT_HEIGHT, IMAGE_BPP32);
// asm_inline("emms"); // doenst need bec. libimg functions used here does not use mmx (=> does not currept fpu state)
}
void graphicsBlitAtlasImage(int atlasX, int atlasY, int destX, int destY, int w, int h, bool center) {
@@ -63,7 +62,6 @@ void graphicsBlitAtlasImage(int atlasX, int atlasY, int destX, int destY, int w,
//printf("start graphicsBlitAtlasImage ax = %d ay = %d dx = %d dy = %d w = %d h = %d %x %x\n\n", atlasX, atlasY, destX, destY, w, h, screenImage, spriteAtlas);
img_blend(screenImage, spriteAtlas, destX, destY, atlasX, atlasY, w, h);
asm_inline("emms");
// dbg_printf("end graphicsBlitAtlasImage\n\n");
}