diff options
author | Jess VanDerwalker <washu@sonic.net> | 2012-04-04 15:23:55 -0700 |
---|---|---|
committer | Jeremy Huddleston <jeremyhu@apple.com> | 2012-04-05 11:45:10 -0700 |
commit | 3e6dde9d9ee4923490e06330443bbd13a856630a (patch) | |
tree | 66a8307e705e7e6ebe6c0269595eea018050f71c | |
parent | ac790910e3239831495faddb4ecc3964e8cdfebc (diff) |
Removed dead code.
Signed-off-by: Jess VanDerwalker <washu@sonic.net>
-rw-r--r-- | src/xtoq/XtoqImageRep.h | 6 | ||||
-rw-r--r-- | src/xtoq/XtoqImageRep.m | 11 |
2 files changed, 9 insertions, 8 deletions
diff --git a/src/xtoq/XtoqImageRep.h b/src/xtoq/XtoqImageRep.h index 1f2c111..81a4f38 100644 --- a/src/xtoq/XtoqImageRep.h +++ b/src/xtoq/XtoqImageRep.h @@ -59,14 +59,14 @@ * @param imageData The image from the Xserver that you want drawn * @return No if image from the xserver is null else Yes */ -- (BOOL)canInitWithData:(xcb_image_t *)imageData; +- (BOOL)canInitWithData: (xcb_image_t *)imageData; /** * Return the image it has constructed from the imageData * @param imageData The image from the Xserver that you want drawn * @return id It returns its own id */ -- (id)initWithData:(xcwm_image_t *)imageData x:(int)x y:(int)y; +- (id)initWithData: (xcwm_image_t *)imageData x:(int)x y:(int)y; /** * Return whether the window was drawn @@ -84,7 +84,7 @@ - (CGFloat)getWidth; - (CGFloat)getHeight; -- (BOOL)drawInRect:(NSRect)rect; +- (BOOL)drawInRect: (NSRect)rect; - (void)destroy; diff --git a/src/xtoq/XtoqImageRep.m b/src/xtoq/XtoqImageRep.m index 89a404e..e2208a4 100644 --- a/src/xtoq/XtoqImageRep.m +++ b/src/xtoq/XtoqImageRep.m @@ -60,11 +60,11 @@ CGColorSpaceRef csp = CGColorSpaceCreateDeviceRGB(); CGBitmapInfo bitmapInfo = kCGImageAlphaNoneSkipFirst | kCGBitmapByteOrder32Host; - cgImage = CGImageCreate (imageT->width,// size_t width, + cgImage = CGImageCreate (imageT->width, // size_t width, imageT->height, //size_t height, - 8, //size_t bitsPerComponent, - 32,//size_t bitsPerPixel, - imageT->stride,//size_t bytesPerRow, + 8, //size_t bitsPerComponent, + 32, //size_t bitsPerPixel, + imageT->stride, //size_t bytesPerRow, csp, //CGColorSpaceRef colorspace, bitmapInfo, cgdat,//CGDataProviderRef provider, @@ -89,7 +89,6 @@ NSLog(@"No image"); return NO; } - // CGContextDrawImage(contextMac, CGRectMake(imageX, imageY, width, height), cgImage); CGContextDrawImage(contextMac, CGRectMake(imageX, imageY, width, height), cgImage); return YES; @@ -124,9 +123,11 @@ - (float)imageX{ return imageX; } + - (float)imageY{ return imageY; } + - (void)destroy{ if (imageParent) { xcwm_image_destroy(imageParent); |