summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJess VanDerwalker <washu@sonic.net>2012-03-13 20:59:13 -0700
committerJess VanDerwalker <washu@sonic.net>2012-03-13 20:59:13 -0700
commit4134e98b15ffcc2463b6c197b5fbc2dca9d53c4b (patch)
tree3cc1fcb0a388db8c62a7faee1c9100bbaa02889e
parented5b88f64ecec95d967a42babc86a12a35d77fea (diff)
More code cleanup.
-rw-r--r--src/xtoq/XtoqController.m9
-rw-r--r--src/xtoq/XtoqView.h3
-rw-r--r--src/xtoq/XtoqView.m2
3 files changed, 0 insertions, 14 deletions
diff --git a/src/xtoq/XtoqController.m b/src/xtoq/XtoqController.m
index 9990355..3671dc1 100644
--- a/src/xtoq/XtoqController.m
+++ b/src/xtoq/XtoqController.m
@@ -431,9 +431,6 @@
newView = [[XtoqView alloc] initWithFrame:imgRec];
[newView setContext:windowContext];
- // set the initial image in the window
- // [newView setImage:imageRep];
-
// add view to its window
[newWindow setContentView: newView ];
@@ -475,13 +472,7 @@
float y_transformed;
NSRect newDamageRect;
-// libImageT = test_xtoq_get_image(windowContext);
-
y_transformed =( windowContext->height - windowContext->damaged_y - windowContext->damaged_height)/1.0;
-// imageNew = [[XtoqImageRep alloc] initWithData:libImageT
-// x:((windowContext->damaged_x))
-// y:y_transformed];
-
newDamageRect = NSMakeRect(windowContext->damaged_x,
y_transformed,
windowContext->damaged_width,
diff --git a/src/xtoq/XtoqView.h b/src/xtoq/XtoqView.h
index ad903ad..2ec98c3 100644
--- a/src/xtoq/XtoqView.h
+++ b/src/xtoq/XtoqView.h
@@ -67,7 +67,4 @@ SOFTWARE.
*/
- (void)setPartialImage:(NSRect)newDamageRect;
-
-//- (void)getRectsBeingDrawn:(const NSRect **)rects count:(NSInteger *)count;
-
@end
diff --git a/src/xtoq/XtoqView.m b/src/xtoq/XtoqView.m
index 50da5fc..2feb66e 100644
--- a/src/xtoq/XtoqView.m
+++ b/src/xtoq/XtoqView.m
@@ -76,7 +76,6 @@ drawRect:(NSRect)dirtyRect {
// Remove the damage
xtoq_remove_context_damage(viewContext);
}
-
xtoq_release_event_thread_lock();
}
@@ -145,7 +144,6 @@ mouseDown:(NSEvent *)mouseEvent {
- (void)setPartialImage:(NSRect)newDamageRect {
[self setNeedsDisplayInRect:newDamageRect];
- //[[self window] flushWindow];
}
- (BOOL)isOpaque{