CGImageRef image = CGBitmapContextCreateImage(_context);
CGContextRef currentContext = (CGContextRef)[[NSGraphicsContext currentContext] graphicsPort];
CGContextDrawImage(currentContext, NSRectToCGRect(rect), image);
+
+ CFRelease(colorSpace);
+ CFRelease(image);
}
@end
}
while (env.winClosed == 0){
drv_sleep(100);
- drv_flshWin(v_xsiz, v_ysiz, 0, 0);
}
}
if (env.lastConsoleChar != '\n'){
int typ;
};
+typedef struct Device_Window HOSECPU_Device_Window;
+
typedef struct Regs HOSECPU_RuntimeEnvironment;
struct Regs {
int ireg[64]; /* 32bit整数レジスタ */