Commit Graph
1087 Commits
Author SHA1 Message Date
Vincent Wei b0e780dfd8 use surface width and height for screen width and height when it is the server 2020-01-21 17:38:07 +08:00
Vincent Wei be2f3a2546 call SyncUpdateDC 2020-01-21 17:37:14 +08:00
Vincent Wei 7ed4d9244b enhance kernel_IsOnlyMe to remove old semaphore sets; use flock to check IsOnlyMe 2020-01-21 17:36:58 +08:00
Vincent Wei b1d9b3eb4f cleanup 2020-01-21 17:35:40 +08:00
Vincent Wei 5b55d1b7ac cleanup 2020-01-21 17:35:30 +08:00
Vincent Wei a01908e56f support for software cursor for compositing schema 2020-01-21 17:35:18 +08:00
Vincent Wei 528ed6589d add inline functions: get_shm_key_for_system, get_sem_key_for_system, and get_sem_key_for_layers 2020-01-21 17:34:44 +08:00
Vincent Wei d595ffe76f add a flag to video info: hw_cursor 2020-01-21 17:34:04 +08:00
Vincent Wei ffb6112e25 mark HDC_SCREEN as a memory dc for compositing schema; implement SyncUpdateSurface 2020-01-21 14:38:51 +08:00
Vincent Wei 6ff853f735 lock/unlock surface when syncupdate shared surface 2020-01-21 14:38:14 +08:00
Vincent Wei c5b83c9498 declare SyncUpdateSurface 2020-01-21 14:37:33 +08:00
Vincent Wei 82497a4032 fix conditional compilation errors 2020-01-21 12:20:04 +08:00
Vincent Wei dc1d0a8016 fix conditional compilation errors 2020-01-21 12:16:24 +08:00
Vincent Wei d4d9fe3bc4 Call GAL_UpdateRect for shared surfaces when leaving drawing 2020-01-21 12:11:39 +08:00
Vincent Wei 22799cda37 use IS_SCREEN_SURFACE to check whether hide/show cursor in BitBlt 2020-01-21 12:10:53 +08:00
Vincent Wei fe22d61639 Tune GAL_UpdateRects for shared surfaces 2020-01-21 12:10:11 +08:00
Vincent Wei 44cea5b587 init video, dirty_age, nr_dirty_rcs to zero 2020-01-21 12:08:38 +08:00
Vincent Wei 947cde2e9b tune kernel_ShowCursorForGDI for compositing schema 2020-01-21 12:08:07 +08:00
Vincent Wei 4dec634bd9 add nr_dirty_rcs field and use unsigned int for dirty_age 2020-01-21 12:07:25 +08:00
Vincent Wei 21866051b5 add macro: IS_SCREEN_SURFACE 2020-01-21 12:06:53 +08:00
Vincent Wei 10c69afbf7 define NR_DIRTY_RECTS to 16 2020-01-21 12:06:31 +08:00
Vincent Wei 733d1c3377 lock_mousemove_sem -> LOCK_MOUSEMOVE_SEM, unlock_mousemove_sem -> UNLOCK_MOUSEMOVE_SEM 2020-01-21 10:39:19 +08:00
Vincent Wei 4f1527c898 lock_draw_sem -> LOCK_DRAW_SEM; unlock_draw_sem -> UNLOCK_DRAW_SEM 2020-01-21 10:38:49 +08:00
Vincent Wei fc42d28f65 remove unnecessary compilation conditions 2020-01-21 10:38:20 +08:00
Vincent Wei 4aa7904db7 tune implementation of mg_InitScreenDC; remove unnecessary compilation conditions 2020-01-21 10:37:28 +08:00
Vincent Wei 805c7f5bb2 define __mg_switch_away and cleanup 2020-01-21 10:36:13 +08:00
Vincent Wei 8e6336d2f3 cleanup. This is file is marked deprecated 2020-01-21 10:35:34 +08:00
Vincent Wei 6440db4446 reflect the change of mg_InitScreenDC 2020-01-21 10:34:49 +08:00
Vincent Wei e0c4874bb9 move definitaion of __mg_layer to src/newgal/video.c 2020-01-21 10:33:47 +08:00
Vincent Wei be051b59ea move definitaion of __mg_layer to src/newgal/video.c 2020-01-21 10:33:34 +08:00
Vincent Wei 3544a587d3 lock_cursor_sem -> LOCK_CURSOR_SEM, unlock_cursor_sem -> UNLOCK_CURSOR_SEM 2020-01-21 10:32:55 +08:00
Vincent Wei 5a5bee347c change prototype of mg_InitScreenDC to no argument 2020-01-21 10:32:11 +08:00
Vincent Wei 11c0821afb make __mg_switch_away available for all runtime modes; remove declaration for unlock_draw_sem and lock_draw_sem 2020-01-21 10:31:28 +08:00
Vincent Wei 1b5e3e3a45 cleanup: uppercase macros 2020-01-21 10:30:36 +08:00
Vincent Wei 4f662c216b CHECK_DRAWING -> WITHOUT_DRAWING; add BLOCK_DRAW_SEM, UNBLOCK_DRAW_SEM, and WITHOUT_DRAWING for compositing schema 2020-01-21 10:29:31 +08:00
Vincent Wei a110882134 cleanup: lock_mousemove_sem -> LOCK_MOUSEMOVE_SEM, unlock_mousemove_sem -> UNLOCK_MOUSEMOVE_SEM 2020-01-21 10:27:49 +08:00
Vincent Wei dc0ff60b80 init compositor manager in ServerStartup 2020-01-20 18:47:57 +08:00
Vincent Wei 371038040f add changes to ZNODEHEADER and init it to zero when allocating a new znode 2020-01-20 18:36:30 +08:00
Vincent Wei 3b1351b128 add changes in ZNODEHEADER and tune the operation names 2020-01-20 18:20:30 +08:00
Vincent Wei 6b2197ea1d fix compilation error 2020-01-20 16:55:32 +08:00
Vincent Wei 9aec7a85cf disable use of sg_FreeClipRectList, sg_ScrGCRInfo, and sg_UpdateRgn for compositing schema; call compositing operations when znode changed. 2020-01-20 16:52:41 +08:00
Vincent Wei ed904a3e92 tune operations 2020-01-20 16:51:30 +08:00
Vincent Wei 5b169494be tune ZORDERNODE 2020-01-20 16:51:00 +08:00
Vincent Wei 2120020801 tune CompositorOps 2020-01-20 16:50:37 +08:00
Vincent Wei 9b48b966cf optimize composite_with_wallpaper 2020-01-20 12:14:24 +08:00
Vincent Wei 5840f4f1a8 reset clipping rect of HDC_SCREEN_SYS before composting 2020-01-20 12:07:37 +08:00
Vincent Wei 56c2c7ec17 implement on_dirty_win 2020-01-20 11:56:37 +08:00
Vincent Wei d3835670ac tune CompositorOps 2020-01-20 11:55:14 +08:00
Vincent Wei e2b3c31e3d fix a compilation error 2020-01-20 08:39:10 +08:00
Vincent Wei 4b89ff7d19 comment out get_text_char_pos and tune srvChangeCaption to use strdup 2020-01-19 19:32:58 +08:00