Various cross-browser fixes.
Now working under Arora 0.5. But not Konqueror 4.2.2 (WebSockets never connects). IE support with excanvas still pending.
This commit is contained in:
+8
-5
@@ -64,7 +64,7 @@ true_color : false,
|
||||
|
||||
b64encode : true, // false means UTF-8 on the wire
|
||||
//b64encode : false, // false means UTF-8 on the wire
|
||||
connectTimeout : 1000, // time to wait for connection
|
||||
connectTimeout : 3000, // time to wait for connection
|
||||
|
||||
|
||||
// In preference order
|
||||
@@ -140,6 +140,9 @@ load: function () {
|
||||
}
|
||||
}
|
||||
|
||||
// Initialize canvas/fxcanvas
|
||||
Canvas.init(RFB.canvasID);
|
||||
|
||||
// Populate encoding lookup tables
|
||||
RFB.encHandlers = {};
|
||||
RFB.encNames = {};
|
||||
@@ -466,8 +469,8 @@ init_msg: function () {
|
||||
name_length = RQ.shift32();
|
||||
RFB.fb_name = RQ.shiftStr(name_length);
|
||||
|
||||
Canvas.init(RFB.canvasID, RFB.fb_width, RFB.fb_height, RFB.true_color,
|
||||
RFB.keyPress, RFB.mouseButton, RFB.mouseMove);
|
||||
Canvas.resize(RFB.fb_width, RFB.fb_height, RFB.true_color);
|
||||
Canvas.start(RFB.keyPress, RFB.mouseButton, RFB.mouseMove);
|
||||
|
||||
if (RFB.true_color) {
|
||||
RFB.fb_Bpp = 4;
|
||||
@@ -873,7 +876,7 @@ display_hextile: function() {
|
||||
sw = (wh >> 4) + 1;
|
||||
sh = (wh & 0x0f) + 1;
|
||||
|
||||
Canvas.setTile(tile, sx, sy, sw, sh, color);
|
||||
Canvas.setSubTile(tile, sx, sy, sw, sh, color);
|
||||
}
|
||||
}
|
||||
Canvas.putTile(tile);
|
||||
@@ -1191,7 +1194,7 @@ recv_message_reorder: function(e) {
|
||||
} else {
|
||||
console.warn("sequence number mismatch: expected " +
|
||||
RFB.RQ_seq_num + ", got " + seq_num);
|
||||
if (RFB.RQ_reorder.length > 20) {
|
||||
if (RFB.RQ_reorder.length > 40) {
|
||||
RFB.updateState('failed', "Re-order queue too long");
|
||||
} else {
|
||||
RFB.RQ_reorder = RFB.RQ_reorder.concat(e.data.substr(0));
|
||||
|
||||
Reference in New Issue
Block a user