Commit f4f65b75 by Thomas Krex

handleupdatedpixels deleted in GraphicsContex, because not used

parent 669faeae
......@@ -103,8 +103,8 @@ public class GraphicsContext implements MessageConsumer {
*
*/
public void updateView(boolean setBitmap) {
if (refreshEnabled) {
// get Bitmap without Annotations or highlighted search results
final Bitmap bitmap = bitmapContainer.getBitmap();
// define canvas, which draws in the bitmap
......@@ -175,9 +175,9 @@ public class GraphicsContext implements MessageConsumer {
*/
@Override
public void handleMessage(Message message) {
message.paint(this);
if (message instanceof Annotation)
updateView(false);
updateView(false);
}
......@@ -194,15 +194,15 @@ public class GraphicsContext implements MessageConsumer {
* @param h
* height of rectangle
*/
public void handleUpdatedPixels(int x, int y, int w, int h) {
// if recording is adjusting, messages are not painted one by one but
// only the final image
if (!recording.adjusting) {
updateView(false);
}
}
// public void handleUpdatedPixels(int x, int y, int w, int h) {
//
// // if recording is adjusting, messages are not painted one by one but
// // only the final image
// if (!recording.adjusting) {
//
// updateView(false);
// }
// }
/*******************************************************************************************************************
* Annotations *
......
......@@ -58,7 +58,7 @@ public class CopyRectMessage extends FramebufferUpdateMessage {
@Override
public void paint(GraphicsContext graphicsContext) {
graphicsContext.handleUpdatedPixels(x, y, width, height);
// graphicsContext.handleUpdatedPixels(x, y, width, height);
}
@Override
......
......@@ -97,7 +97,7 @@ public class HextileMessage extends FramebufferUpdateMessage {
handleHextileRect(graphicsContext, is, null, x, y, width, height,
updateFlag);
// change pixels of bitmap
graphicsContext.handleUpdatedPixels(x, y, width, height);
// graphicsContext.handleUpdatedPixels(x, y, width, height);
} catch (IOException e) {
e.printStackTrace();
......
......@@ -178,7 +178,7 @@ public class RawMessage extends FramebufferUpdateMessage {
// if (!graphicsContext.paint_to_offscreen_image)
// // NOTE: raw mode calls update for whole rectangle, not for
// subrectangles
graphicsContext.handleUpdatedPixels(x, y, w, h);
// graphicsContext.handleUpdatedPixels(x, y, w, h);
}
/*******************************************************************************************************************
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment