Commit Graph

84 Commits

Author SHA1 Message Date
Alexander Larsson
7fe1df4e14 Convert cairo canvas draw_copy() to using pixman
This is just identical to draw_blend().
2010-02-23 22:52:05 +01:00
Alexander Larsson
eff0aa0298 Convert cairo canvas draw_blend() to using pixman 2010-02-23 22:52:05 +01:00
Alexander Larsson
0cb87a507c Convert cairo canvas draw_opaque() to using pixman 2010-02-23 22:52:05 +01:00
Alexander Larsson
864881c318 Convert cairo canvas draw_fill() to using pixman 2010-02-23 22:52:05 +01:00
Alexander Larsson
a7ceb98ea1 Add possibility to not invert bitmask in canvas_get_mask()
This allows the pixman implementation to instead invert the (generally
smaller) region instead of duplicating the bitmap to invert it.
2010-02-23 22:52:05 +01:00
Alexander Larsson
16780a7b81 Use pixman_image_t instead of cairo_surface_t as the generic pixman container
This allows us to use the simpler dependency of pixman outside of the
cairo backend, and it later lets us move the cairo backend to using
pixman only.
2010-02-23 22:52:01 +01:00
Alexander Larsson
0b0342ee7e Turn image and palette cache into c style dynamic interface
Instead of passing a bunch of function pointer and an opaque
pointer we make a real type and add a vtable pointer to it.
This means we can simplify all the canvas constructors, etc.
2010-02-23 14:43:20 +01:00
Alexander Larsson
7537acd630 Add optional templated base class to Cache and SharedCache
We want this for integration with C-style classes.
2010-02-23 14:43:20 +01:00
Alexander Larsson
79d8c5c6a4 Add pixman_image_t referencing the cairo_canvas bits
This references the same data as the cairo surface and can be used
for drawing to the surface using direct pixman calls instead.
2010-02-23 14:43:20 +01:00
Alexander Larsson
60a189f250 Add line rasterizer 2010-02-23 14:43:20 +01:00
Alexander Larsson
9091e763a8 Add pixman utilities
This includes:
 * pixman region from SpiceRects
 * rop2 enum
 * solid fill
 * solid fill with rop
 * tiled fill
 * tiled fill with rop
 * blit
 * blit with rop
 * copy rect
2010-02-23 14:43:15 +01:00
Alexander Larsson
2233dd02a1 Add emacs settings for indent according to spice styleguide 2010-02-23 11:52:30 +01:00
Alexander Larsson
b82f9ed2b3 Fix delete vs delete[] mismatches
This fixes a bunch of valgrind warnings.
2010-02-10 11:25:28 +01:00
Alexander Larsson
39be5a8b13 Use standard int types and <spice/types.h> 2010-02-04 18:49:05 +01:00
Alexander Larsson
90104b39ae Revert automatic renames that were wrong
Seems my rename script didn't handle C++ namespaces that well.
2010-02-04 18:49:05 +01:00
Alexander Larsson
16540e9953 Use the new header names
I just ran:
 find -name "*.[ch]" | xargs sed -i -f ../spice-protocol/includes.sed
 find -name "*.cpp" | xargs sed -i -f ../spice-protocol/includes.sed
2010-02-04 18:49:05 +01:00
Alexander Larsson
1f51697852 Rename symbols that were changed in spice-protocol
This is an automatic change using:
$ find -name "*.[ch]" | xargs ../spice-protocol/rename-identifiers.sh ../spice-protocol/renames
$ find -name "*.cpp" | xargs ../spice-protocol/rename-identifiers.sh ../spice-protocol/renames
2010-02-04 18:49:00 +01:00
Alexander Larsson
c1694fb51b Remove headers that were moved to spice-protocol 2010-02-04 17:56:42 +01:00
Alexander Larsson
3d84818a7b Depend on spice-protocol module
This doesn't actually use the new module, just sets it up for use.
2010-02-04 16:54:17 +01:00
Alexander Larsson
a8ffd12e99 Filter out XIM X events
XIM ClientMessage events to an XIM internal window was triggering
the check for a window message procs. We need to properly filter
events with XFilterEvent to avoid this happening.
2010-02-04 16:11:38 +01:00
Izik Eidus
2ba69f9f88 libspice: add surface 0 support
This include alot of infestracture for off screens.

Signed-off-by: Izik Eidus <ieidus@redhat.com>
2010-01-28 04:46:29 +02:00
Yaniv Kamay
766c74f63c client: change rerror code to be positive 2010-01-11 19:58:35 +02:00
Yaniv Kamay
8ceb531958 client: add Platform::term_printf
Platform::term_printf is a variant of printf that
on windows dynamically opens console in order to
have visible output during command line processing.
2010-01-11 19:57:29 +02:00
Yaniv Kamay
3c1ff6448d client: fix logger init mix-up 2010-01-11 19:39:54 +02:00
Yaniv Kamay
ad12181027 client: move log file to spicec appdata dir 2010-01-11 19:30:39 +02:00
Yonit Halperin
3eae1c80d9 server,client: server authentication for secured channels.
3 available mechanisms:  by public key, by host name, and by certificate subject name.
In the former method, chain of trust verification is not performed.
The CA certificate files are looked for under <spice-config-dir>/spice_truststore.pem

windows <spice-config-dir>=%APPDATA%\spicec\
linux <spice-config-dir>=$HOME/.spicec/
2010-01-11 19:10:54 +02:00
Arnon Gilboa
dcf326cfd5 spice: menu additons
-functions: set_name, remove_command, remove_sub, clear
-item state & enum
-add state support in RedWindow insert_command & insert_menu
2010-01-07 13:53:41 +02:00
Yaniv Kamay
81945d8971 server: add new vd interface QTerm2Interface 2010-01-06 19:05:36 +02:00
Arnon Gilboa
6dd05455fb spice: add missing break 2010-01-06 17:26:23 +02:00
Yaniv Kamay
c362f8473b client: use spice icon instead-of solidice icon 2010-01-04 21:13:03 +02:00
Arnon Gilboa
d42620a365 spice: PKG_CHECK_MODULES: CEGUI version 2009-12-30 22:17:27 +02:00
Arnon Gilboa
ea9af22e62 spice: position mouse in primary monitor center after full screen toggle
-move _focused & _pointer_in_window from RedWindow to RedWindow_p's
-move shadow focus & cursor handling to sync()
-add reset_cursor_pos() to Platform
-Monitor set_mode()/restore() use virtual do_set_mode()/do_restore()
2009-12-30 22:15:02 +02:00
Arnon Gilboa
02a07b2c06 spice: on_activate_screen generates on_key_down for any modifier pressed
-call SetWindowsHookEx(WH_KEYBOARD_LL, LowLevelKeyboardProc...) only once, in RedWindow::init()
-add Application::cleanup_globals() & RedWindow::cleanup()
-cleanup LowLevelKeyboardProc()
2009-12-30 22:09:25 +02:00
Yaniv Kamay
c57bcf6f44 client: let PreLoginDialog save and restore LoginDialog 2009-12-28 16:44:38 +02:00
Yaniv Kamay
76fc1dd847 client: remove splash image 2009-12-28 12:39:37 +02:00
Yaniv Kamay
68fb440129 client: add GUI infrastructure + functional login dialog 2009-12-28 12:38:58 +02:00
Yaniv Kamay
659be313a4 client: add gui res files 2009-12-28 12:38:03 +02:00
Yaniv Kamay
ce480b0733 client: add soft renderer and cegui 2009-12-28 12:37:01 +02:00
Yaniv Kamay
2dbaf8c00c client: smiplify DisconnectedEvent 2009-12-28 12:36:46 +02:00
Yaniv Kamay
62248734bd client: move visibility change logic from screen to app 2009-12-28 12:36:21 +02:00
Yaniv Kamay
c6435ea02b client: wait for disconnect state in RedClient::connect() 2009-12-28 12:35:54 +02:00
Yaniv Kamay
cced1b1cff client: improve screen resizing
Screen now have to modes locked and unlocked.

In unlocked mode, the application can change screen size and so
reduce resolution changing. The application can also choose to
change window size while not in full screen mode.

In locked mode the application must ewtain locker screen size
setting.
2009-12-28 12:35:32 +02:00
Yaniv Kamay
941ba9bf5c client: restore mouse capture state after screen resizing 2009-12-28 12:35:14 +02:00
Yaniv Kamay
ff2e0dbdb7 use spaces instead of tabs in bitmap_to_c and icon_to_c output 2009-12-28 12:34:45 +02:00
Yaniv Kamay
321d375b5e win client: change avcodec version to 51 2009-12-24 00:45:20 +02:00
Izik Eidus
3e1d328e37 spice: fix server crush in case connecting without qxl device
Signed-off-by: Izik Eidus <ieidus@redhat.com>
2009-12-24 00:26:52 +02:00
Izik Eidus
240723a45d spice client: fix wrong gdi-canvas handling of blend_alpha
Signed-off-by: Izik Eidus <ieidus@redhat.com>
2009-12-23 23:15:07 +02:00
Yaniv Kamay
a0a1a973d8 client: new static title image 2009-12-23 22:29:15 +02:00
Izik Eidus
cb0cd69933 spice: fix ssl compiling errors
(openssl api was changed, so lets have ifdef to compile in all cases)

Signed-off-by: Izik Eidus <ieidus@redhat.com>
2009-12-22 21:39:17 +02:00
Izik Eidus
e93ef13b8f spice: client: add checks to see if it is safe to use XShem.
Beacuse that XShem internal checks wont fail when using the spice client
from remote, we are adding check on the socket family to see if it is
unix domain socket and fail in case it is not.

Signed-off-by: Izik Eidus <ieidus@redhat.com>
2009-12-22 21:34:55 +02:00