Commit Graph
1654 Commits
Author SHA1 Message Date
Vincent Wei f8b939766a fix a bug: under compositing schema, for the secondary DC, we need to offset more based on the origin of the main window when updating the secondary DC 2020-03-06 15:53:19 +08:00
Vincent Wei 85a18df3ea remove old deprecated code 2020-03-06 15:52:16 +08:00
Vincent Wei b18460fe3a tune some constants 2020-03-06 15:51:51 +08:00
Vincent Wei 8a845ac965 fix some conditional compilation errors 2020-03-06 14:11:35 +08:00
Vincent Wei 1974d27deb make sure the event parsor thread is joinable 2020-03-06 11:09:08 +08:00
Vincent Wei 7f58a1775e tune 2020-03-06 11:08:44 +08:00
Vincent Wei 792359eb62 fix possible memory leaks for free notification message objects 2020-03-06 11:08:33 +08:00
Vincent Wei f23949349b add some helpers 2020-03-06 10:32:47 +08:00
Vincent Wei 50d0ec55eb fix memory leaks in ReleaseDC: do not set region for released DC in slots 2020-03-06 10:32:31 +08:00
Vincent Wei 243f24d0a3 fix memory leaks in VirtualWindwoCleanup and MainWindowCleanup 2020-03-06 10:31:31 +08:00
Vincent Wei b718a9a0aa fix memory leak for not deleting null devfonts 2020-03-06 10:31:09 +08:00
Vincent Wei 05802cee73 Remove unused field sync_msg in MSGQUEUE; improve __mg_throw_away_messages to free notification messages to block heap and compress the post message queue 2020-03-05 21:42:22 +08:00
Vincent Wei b85901dad0 tune description words; declare new API SendPriorNotifyMessage; Make EmptyMessageQueue available for all runmodes 2020-03-05 20:47:21 +08:00
Vincent Wei 030671ad7e add ERR_MSG_CANCELED and tune the error values 2020-03-05 20:44:09 +08:00
Vincent Wei 283c4e4bc4 mark a window as TODEL after calling ThrowAwayMessages; tune name of some internal inline functions 2020-03-05 13:04:31 +08:00
Vincent Wei 5812c11f7c tune GetRootWindow to return the number of windows 2020-03-04 22:52:36 +08:00
Vincent Wei 5224e31084 cleanup 2020-03-04 21:54:28 +08:00
Vincent Wei 71d0da248d use DFS for broadcast message 2020-03-04 20:58:23 +08:00
Vincent Wei 627a71346b cleanup 2020-03-04 20:57:09 +08:00
Vincent Wei 2c58b6aeab fix a bug: wrong values for WIN_SEARCH_FILTER_MAIN and WIN_SEARCH_FILTER_VIRT 2020-03-04 20:56:44 +08:00
Vincent Wei 90371bd793 rename GetSecondarySubDC to GetDCInSecondarySurface 2020-03-04 15:37:01 +08:00
Vincent Wei 152f97b82d implement GetDCEX; improve CreatePrivateDC and CreatePrivateClientDC to use secondary DC; tune GetSecondaryDC; implement __mg_delete_secondary_dc and tune DestroySecondaryDC; GetSecondarySubDC -> GetDCInSecondarySurface; implement GetEffectiveCDC; implement __mg_update_dc_on_surface_resized and __mg_update_dc_on_secondary_dc_changed 2020-03-04 15:36:34 +08:00
Vincent Wei e2c6225d22 always use CreatePrivateClientDC and DeletePrivateDC; call __mg_delete_secondary_dc instead of DeleteSecondaryDC when remove a main window; call __mg_update_dc_on_surface_changed for compositing schema when the underlying surface resized. 2020-03-04 15:30:26 +08:00
Vincent Wei 10c32236e7 always use CreatePrivateClientDC and DeletePrivateDC; call __mg_delete_secondary_dc instead of DeleteSecondaryDC when remove a main window 2020-03-04 15:29:23 +08:00
Vincent Wei 097e379ec2 add MG_IS_GRAPHICS_WINDOW 2020-03-04 15:28:00 +08:00
Vincent Wei bef9c5e476 add dump_gal_rect and dump_surface 2020-03-04 15:27:43 +08:00
Vincent Wei 88603deb44 tune get_effective_dc and release_effective_dc 2020-03-04 15:27:16 +08:00
Vincent Wei 38e189ad17 Always use CeratePrivateClientDC for private CDC; use __mg_delete_secondary_dc when destroying a window; call __mg_update_dc_on_secondary_dc_changed if secondary DC changed; cleanup code 2020-03-04 15:23:34 +08:00
Vincent Wei f27d0a96b4 introduce GetDCEx, GetDCInSecondarySurface, GetEffectiveCD; mark GetSecondaryClientDC, ReleaseSecondaryDC as deprecated; tune the description words 2020-03-04 15:21:04 +08:00
Vincent Wei 6d0fc20092 do not call dc_GenerateMemDCECRgn by force in __mg_check_ecrgn 2020-03-03 18:43:49 +08:00
Vincent Wei 4111e5a1b1 restore memset for a new RGBSurface 2020-03-03 18:38:36 +08:00
Vincent Wei 022b23ff32 inuse -> bInUse 2020-03-03 18:37:58 +08:00
Vincent Wei 56c5ddee01 tune __mg_check_ecrgn for seondary dc and compositing dc; fix a bug: calculate the correct DevRC for controls as main window under compositing schema. 2020-03-03 15:42:22 +08:00
Vincent Wei 039fa8a86a cleanup 2020-03-03 15:40:37 +08:00
Vincent Wei 01579a0a89 for invalid widht and or height, set a minimal size for the surface 2020-03-03 15:40:22 +08:00
Vincent Wei 06b783e0a8 cleanup 2020-03-03 15:38:38 +08:00
Vincent Wei 262bf68807 move gui_Control to ctrlclass.h as inline function 2020-03-03 15:38:17 +08:00
Vincent Wei cc20828ddd more words for 4.9.0 release notes 2020-03-02 21:31:14 +08:00
Vincent Wei 48037493f5 improve the fallback compositor 2020-03-02 19:29:15 +08:00
Vincent Wei 38c4a3e632 assign value to __mg_tick_counter when startup 2020-03-02 19:28:52 +08:00
Vincent Wei 404349dd45 tune the implementation of map: make sure that the operation to the map is atomical 2020-03-02 14:54:17 +08:00
Vincent Wei 3ce11d8882 move copy_key_string, free_key_string, and comp_key_string to map.h as static inline functions 2020-03-02 14:39:10 +08:00
Vincent Wei 9f1a7940c5 implement __mg_map_find_replace_or_insert 2020-03-02 14:38:14 +08:00
Vincent Wei 9fdfea572d declare __mg_map_find_replace_or_insert, mark __mg_map_find_or_insert and __mg_map_find_or_insert_ex as deprecated 2020-03-02 14:37:59 +08:00
Vincent Wei a6a9388fdf destroy local data map in DestroyMainWindow, DestroyVirtualWindow, and DestroyWindow; implement SetWindowLocalData, RemoveWindowLocalData, and GetWindowLocalData 2020-03-02 14:36:54 +08:00
Vincent Wei 000ff2fbab tune description text 2020-03-02 14:34:00 +08:00
Vincent Wei 0906c88c1f tune code according to the new prototype of CreaetMainWindowEx2 2020-03-02 11:17:06 +08:00
Vincent Wei 7f45d5232d improve the implementation of map based on rbtree to having the alternative free function per entry 2020-03-02 11:16:13 +08:00
Vincent Wei e1c44ebaa9 add mapLocalData fields for all kinds of window 2020-03-02 11:15:16 +08:00
Vincent Wei c0869dc898 tune implementation of CreateMainWindowEx2 2020-03-02 11:14:37 +08:00