Hi Pierre,

as I understand correct, the SetDesktopSize functionality is located between the remote and the local framebuffer content. This connection I have not touched, because this is not possible in my opinion due to direct RW framebuffer access for partial rectangular framebuffer updates and thus damage regions. So I have simply implemented a scaling factor for drawing the local framebuffer into the scaled viewport with respect to the scaled damage regions. So the implementation considers just three different points:

 1) Get the viewport size independent of the framebuffer size [EASY]

 2) Implement a coordinate transformation from framebuffer coordinates to viewport coordinates and vice versa (Window coordinates are still just translated viewport coordinates) [TRICKY because of FTLK and damage regions]

 3) Implement the scaled drawing: (Win32: StretchBlt(...) instead of BitBlt(...) [EASY] / X11: Use nearestNeighbour algorithm and separate rectangular XImage for update region [EASY and FAST but bad quality] / OSX: [NOT DONE])

So I will try to get some patches on that topic only in the next future and send it to you. Maybe you can have a look at it to implement an improved version into the repository code?

Regards,
Christian



On 24.09.2013 11:01, Pierre Ossman wrote:
On Tue, 24 Sep 2013 10:22:36 +0200
Christian Steinle <christian.stei...@unicon-software.com> wrote:

Dear TigerVNC developers,

I am working for a company, that builds a Linux OS including some kind 
of help desk functionality via the X-Server loadable TigerVNC module. In 
the context of multiple monitors, there might be the need for the 
functionality of scaling the local window independent of the remote 
framebuffer size. So I have recently hacked such a functionality pretty 
rudimentary into the source code of version 1.3.0. However, it is still 
interesting for me, if you plan such a feature in the future? I should 
be also able to deliver the patch files, if you are interested in?

Sure, it's definitely interesting. One issue is how it will play nice
with the SetDesktopSize functionality though.

Rgds


--

Dr. Christian Steinle 
System Architect Linux OS 

Unicon Software GmbH 
Philipp-Reis-Str. 1 
76137 Karlsruhe 
Germany 
Tel. +49 (0)721 96451-0 
Fax +49 (0)721 96451-43 
Email: christian.stei...@unicon-software.com
Web: www.unicon-software.com 

This communication contains information that is confidential, proprietary in nature and/or privileged. It is for the exclusive use of the intended recipient(s). If you are not the intended recipient(s) or the person responsible for delivering it to the intended recipient(s), please note that any form of dissemination, distribution or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error, please immediately notify the sender and delete the original communication. Thank you for your cooperation.

------------------------------------------------------------------------------
October Webinars: Code for Performance
Free Intel webinars can help you accelerate application performance.
Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from 
the latest Intel processors and coprocessors. See abstracts and register >
http://pubads.g.doubleclick.net/gampad/clk?id=60133471&iu=/4140/ostg.clktrk
_______________________________________________
Tigervnc-devel mailing list
Tigervnc-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/tigervnc-devel

Reply via email to