Commit f4f65b75 authored by Thomas Krex's avatar Thomas Krex

handleupdatedpixels deleted in GraphicsContex, because not used

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