Fix upside down images
This commit is contained in:
parent
8817e92795
commit
8faae4eacc
|
@ -194,9 +194,11 @@ static nserror plot_bitmap(const struct redraw_context *ctx, struct bitmap *bitm
|
|||
[image addRepresentation: bmp];
|
||||
|
||||
NSAffineTransform *tf = [GSCurrentContext() GSCurrentCTM];
|
||||
[tf scaleXBy: 0.85 yBy: 0.85];
|
||||
int offset = (y + (height / 2));
|
||||
[tf translateXBy: 0 yBy: offset];
|
||||
[tf scaleXBy: 1.0 yBy: -1.0];
|
||||
[tf translateXBy: 0 yBy: -offset];
|
||||
[GSCurrentContext() GSSetCTM: tf];
|
||||
//[GSCurrentContext() DPSscale: 1.0, y: -1.0];
|
||||
[image drawRepresentation: bmp inRect: rect];
|
||||
[image release];
|
||||
|
||||
|
|
|
@ -142,7 +142,7 @@ static void gnustep_bitmap_modified(void *bitmap) {
|
|||
// Render content into the specified bitmap
|
||||
static nserror gnustep_bitmap_render(struct bitmap *bitmap, struct hlcache_handle *content) {
|
||||
NSLog(@"gnustep_bitmap_render");
|
||||
return NSERROR_OK;
|
||||
return NSERROR_NOT_IMPLEMENTED;
|
||||
}
|
||||
|
||||
struct gui_bitmap_table gnustep_bitmap_table = {
|
||||
|
|
Loading…
Reference in New Issue