View Single Post
Old 02-27-2011, 02:49 PM   #1684
Mark Nord
2B || !2B
Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.Mark Nord ought to be getting tired of karma fortunes by now.
 
Posts: 854
Karma: 327896
Join Date: Feb 2010
Location: Austria
Device: Sony PRS505/650/T1/tolino vision 5
Thinking of the implementation of the screensaver/standby pic, I doubt if ebook.so for PRS-600 is used anyway.

Here is code from defsked ebooksystem.so

Spoiler:
Code:
	<obj41> = new this.Object()
	this.ebook.device.framebuffer.orientation = <obj41>
	this.ebook.device.framebuffer.orientation.portrait = this.__xs__number.parse('0');
	this.ebook.device.framebuffer.orientation.landscape = this.__xs__number.parse('1');
	this.ebook.device.framebuffer.orientation.timer = null;
	this.ebook.device.framebuffer.orientation.onCallback = function () {
		var target, orientation;
		target = this.target;
		orientation = target.getCurrent();
		target.setCurrent((orientation == target.portrait)?target.landscape:target.portrait);
		target.timer.close();
		target.timer = null;
	};
	this.ebook.device.framebuffer.orientation.rotate = function () {
		var timer;
		if (!this.timer) {
			this.timer = new <global>.Timer();
		}
		else {
			this.timer.cancel();
		}
		timer = this.timer;
		timer.target = this;
		timer.onCallback = this.onCallback;
		timer.schedule(10);
	};
	this.ebook.device.framebuffer.orientation.setCurrent = this.@[63];
	this.ebook.device.framebuffer.orientation.getCurrent = this.@[64];
	this.ebook.device.framebuffer.orientation.reset = this.@[65];
	this.ebook.device.framebuffer.orientation;


Assuming that this.ebook.device.framebuffer.orientation.setCurre nt can handle all four states it may be worth to overload "this.ebook.device.framebuffer.orientation.rot ate" and try calling target.setCurrent() with params 2 and 3

[Edit] or even better just set this.ebook.device.framebuffer.orientation.landscap e to the desired value [/Edit]

Last edited by Mark Nord; 02-27-2011 at 03:04 PM.
Mark Nord is offline   Reply With Quote