aboutsummaryrefslogtreecommitdiffstats
path: root/unix
Commit message (Collapse)AuthorAgeFilesLines
* Minor cleanup: declaring PollingManager::sendChanges() as const.Constantin Kaplinsky2008-06-042-2/+2
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2579 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Implemented support for command-line options that print version informationConstantin Kaplinsky2008-06-042-4/+18
| | | | | | | on stdout: -version, --version and -v are all equivalent. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2578 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Minor cleanup, no code changes: updated a comment and moved XDesktop::poll()Constantin Kaplinsky2008-06-041-7/+6
| | | | | | | declaration. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2577 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Refactoring: now PollingManager is owned by XPixelBuffer. No other classesConstantin Kaplinsky2008-06-045-27/+21
| | | | | | | know about PollingManager. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2576 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Code refactoring: PollingManager should not know anything aboutConstantin Kaplinsky2008-06-044-18/+14
| | | | | | | XPixelBuffer. This commit partially reverts the changes from r2567. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2575 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Code refactoring: passing geometry to XPixelBuffer as a Rect instead of fourConstantin Kaplinsky2008-06-043-18/+9
| | | | | | | int values. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2574 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Code improvements and better error checking in the Geometry class:Constantin Kaplinsky2008-06-043-21/+22
| | | | | | | | | | coordinates are now kept as a Rect, added new getRect() method. Also, when the "Geometry" parameter is present but not valid, the constructor will not set the geometry to full screen, zero-size rectangle will be used instead. In that case, x0vncserver will exit with error. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2573 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Code refactoring: maintaining the Image object representing the framebufferConstantin Kaplinsky2008-06-043-26/+35
| | | | | | | in XPixelBuffer instead of XDesktop. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2572 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Code refactoring: setting pixel format in XPixelBuffer instead of XDesktop.Constantin Kaplinsky2008-06-033-18/+23
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2571 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Code refactoring: passing VNCServer pointer to PollingManager methodsConstantin Kaplinsky2008-06-033-27/+12
| | | | | | | instead of maintaining it as a member variable. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2569 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Grabbing the screen moved from PollingManager to XPixelBuffer.Constantin Kaplinsky2008-06-024-16/+19
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2568 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Code refactoring - PollingManager's constructor is given an XPixelBuffer*Constantin Kaplinsky2008-05-305-24/+28
| | | | | | | instead of an Image*. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2567 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Removed the code for automatic video detection. It interfered with videoConstantin Kaplinsky2008-05-303-300/+7
| | | | | | | | selection feature of the Java viewer, and did not look good with respect to the impending polling improvements. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2566 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Support for VideoRectangleSelection client message in the server code. The ↵Constantin Kaplinsky2008-04-241-0/+2
| | | | | | message is read but ignored (only a message will be written to stderr). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2559 3789f03b-4d11-0410-bbf8-ca57d06f2519
* - readded accidentaly removed intl and po directoriesAdam Tkac2008-03-2067-0/+15449
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2435 3789f03b-4d11-0410-bbf8-ca57d06f2519
* - handle HAVE_MITSHM macro through config.hAdam Tkac2008-03-2067-15449/+0
| | | | | | | | | | | - removed unix/intl stuff and added unix/vncviewer/gettext.h file which cares about platform independent translations - removed unwanted config.rpath and ABOUT-NLS (autogenerated) - moved unix/po to top directory - internationalization works again git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2434 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Added some missing #includes whose prevent build source with gcc 4.3Adam Tkac2008-03-193-0/+3
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2431 3789f03b-4d11-0410-bbf8-ca57d06f2519
* viewer could aborted when only one scrollbar should be usedAdam Tkac2008-03-142-7/+22
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2420 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Optimized the checkRow() function.Constantin Kaplinsky2008-01-211-6/+15
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2418 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Minor refactoring: removed getFullRow() function, added its code to getRow().Constantin Kaplinsky2008-01-192-14/+10
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2414 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Minor code enhancement: using an inline function instead of inline arithmetic.Constantin Kaplinsky2008-01-182-5/+10
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2412 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Minor code improvement: added Image::locatePixel(x, y) function to get rid ↵Constantin Kaplinsky2008-01-182-11/+11
| | | | | | of direct pointer arithmetic. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2411 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Made a number of member variables constants.Constantin Kaplinsky2008-01-182-18/+13
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2410 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Minor refactoring: new m_bytesPerPixel member variable.Constantin Kaplinsky2008-01-182-9/+14
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2409 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Refactoring: checkRow() has been rationalized; it does not need arguments ↵Constantin Kaplinsky2008-01-182-12/+26
| | | | | | that it can easily compute itself. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2408 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Code refactoring: removed extra arguments for member functions.Constantin Kaplinsky2008-01-172-35/+38
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2407 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Code refactoring: introduced m_changeFlags member variable, instead of ↵Constantin Kaplinsky2008-01-172-18/+19
| | | | | | similar local variable. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2406 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Minor code refactoring: remembering the number of 32x32 tiles in a member ↵Constantin Kaplinsky2008-01-172-16/+16
| | | | | | variable. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2405 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Implemented calls to reportChanges() as conditional macros. This reduces the ↵Constantin Kaplinsky2008-01-101-13/+11
| | | | | | amount of debugging code. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2400 3789f03b-4d11-0410-bbf8-ca57d06f2519
* More debugging output can be enabled with the #define ↵Constantin Kaplinsky2008-01-102-0/+40
| | | | | | DEBUG_REPORT_CHANGED_TILES. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2399 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Checking neighbor pixels above and below changed tiles, as well as pixels at ↵Constantin Kaplinsky2008-01-091-4/+46
| | | | | | the left and at the right. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2396 3789f03b-4d11-0410-bbf8-ca57d06f2519
* If defined DEBUG_PRINT_NUM_CHANGED_TILES, print correct final number of ↵Constantin Kaplinsky2008-01-092-4/+7
| | | | | | changed tiles detected (excluding video area but including tiles found after "neighbors check"). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2395 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Removed an extra empty line.Constantin Kaplinsky2008-01-081-1/+0
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2394 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Documented TightVNC-specific parameters properly.Constantin Kaplinsky2008-01-081-17/+53
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2393 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Made the manual page more readable, added clarifications, formatting fixes, ↵Constantin Kaplinsky2008-01-081-66/+77
| | | | | | corrected references to other man pages etc. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2392 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Reordered parameter descriptions, as x0vncserver -h printed them in almost ↵Constantin Kaplinsky2008-01-071-84/+84
| | | | | | random order. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2391 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Added new PARAMETERS section to the x0vncserver manual. The information was ↵Constantin Kaplinsky2008-01-071-1/+134
| | | | | | copied from the `x0vncserver -h' output. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2390 3789f03b-4d11-0410-bbf8-ca57d06f2519
* The man page for x0vncserver rewritten from the scratch.Constantin Kaplinsky2008-01-071-24/+34
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2389 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Polling algorithm was extended. Now, if it detected any changes, it will ↵Constantin Kaplinsky2007-12-282-1/+61
| | | | | | also check vertical borders of neighboring tiles at the right. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2388 3789f03b-4d11-0410-bbf8-ca57d06f2519
* When compiled with defining DEBUG_PRINT_NUM_CHANGED_TILES, print the number ↵Constantin Kaplinsky2007-12-281-0/+8
| | | | | | of changed tiles detected in each polling pass. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2387 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Code refactoring and cleanups. Moved a part of handleVideo() back to ↵Constantin Kaplinsky2007-12-282-27/+18
| | | | | | pollScreen(), changed a few function prototypes, added sanity checking in flagVideoArea(). git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2386 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Maintaining additional one-pixel-width image for using in upcoming polling ↵Constantin Kaplinsky2007-12-282-6/+13
| | | | | | improvements. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2385 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Minor code refactoring -- new flagVideoArea() function, minor naming and ↵Constantin Kaplinsky2007-12-282-13/+17
| | | | | | formatting changes. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2384 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Prepared the XPixelBuffer class for grabbing the screen in its grabRegion() ↵Constantin Kaplinsky2007-12-274-15/+42
| | | | | | method. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2383 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Overriding the grabRegion function in XPixelBuffer. It will perform screen ↵Constantin Kaplinsky2007-12-263-1/+32
| | | | | | grabbing right before sending an update. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2382 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Moved XPixelBuffer class into a separate file.Constantin Kaplinsky2007-12-262-21/+52
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2381 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Added a numner of FIXME comments, to identify some possible improvements.Constantin Kaplinsky2007-12-251-0/+14
| | | | git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2380 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Implemented new "VideoPriority" parameter. It allows to increase the ↵Constantin Kaplinsky2007-12-252-1/+26
| | | | | | priority of video data (when set to 2 or higher), or to disable video detection completely (when set to 0). The value 1 gives video area the same priority as the rest of the screen, the value 2 doubles video area priority, and so on. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2379 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Making sure that both height and width of the video area are always ↵Constantin Kaplinsky2007-12-251-1/+13
| | | | | | multiples of 32. This is important for hardware JPEG encoders. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2378 3789f03b-4d11-0410-bbf8-ca57d06f2519
* Added IrixCLJpegCompressor class which will support JPEG compression via the ↵Constantin Kaplinsky2007-12-134-4055/+4537
| | | | | | Irix Compression Library. This version of IrixCLJpegCompressor is just a stub. git-svn-id: svn://svn.code.sf.net/p/tigervnc/code/trunk@2375 3789f03b-4d11-0410-bbf8-ca57d06f2519