Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
ttt
TTTAndroidJoinedClient
Commits
f4f65b75
Commit
f4f65b75
authored
Aug 06, 2014
by
Thomas Krex
Browse files
handleupdatedpixels deleted in GraphicsContex, because not used
parent
669faeae
Changes
4
Hide whitespace changes
Inline
Side-by-side
TTTCLient/src/tttclient/core/GraphicsContext.java
View file @
f4f65b75
...
...
@@ -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 *
...
...
TTTCLient/src/tttclient/messages/CopyRectMessage.java
View file @
f4f65b75
...
...
@@ -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
...
...
TTTCLient/src/tttclient/messages/HextileMessage.java
View file @
f4f65b75
...
...
@@ -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
();
...
...
TTTCLient/src/tttclient/messages/RawMessage.java
View file @
f4f65b75
...
...
@@ -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);
}
/*******************************************************************************************************************
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment