2094 Commits
Author SHA1 Message Date
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
Vincent Wei 94692e0f2d tune CreateMainWindowEx2 and MAINWINCREATE: use function argument intead of new dwBkColor field of structure; declare SetWindowLocalData, GetWindowLocalData, and RemoveWindowLocalData; tune WINDOWINFO structure for new field for local data map 2020-03-02 11:13:09 +08:00
Vincent Wei ea43d9e3ce disable set the pixels to 0 for a new RGB surface 2020-03-01 23:01:40 +08:00
Vincent Wei 837872c8bb handle resized surface correctly 2020-03-01 23:01:10 +08:00
Vincent Wei cf71cd059c handle KS_MIDDLEBUTTON 2020-03-01 19:32:05 +08:00
Vincent Wei 8f01d078d9 adjust to a reasonable position for a main window with style WS_EX_AUTOPOSITION 2020-03-01 18:38:52 +08:00
Vincent Wei 48c2ad5388 tune the implementation of NotifyParentEx 2020-03-01 18:19:17 +08:00
Vincent Wei e816245b91 use DWORD instead of int for timeoutusec, repeatusec, and dblclicktime 2020-03-01 18:17:24 +08:00
Vincent Wei 08eace2093 handle middle button for MSG_MBUTTONDOWN, MSG_MBUTTONUP. and MSG_MBUTTONDBLCLK messages 2020-03-01 18:16:55 +08:00
Vincent Wei 37b0e11146 handle middle button for MSG_MBUTTONDOWN, MSG_MBUTTONUP. and MSG_MBUTTONDBLCLK messages 2020-03-01 18:16:42 +08:00
Vincent Wei 08506e3cbb remove unnecessary kernel_GetGCRgnInfo functions 2020-03-01 17:34:21 +08:00
Vincent Wei 94b4a7eedb tune 2020-02-29 22:34:21 +08:00
Vincent Wei 7d5a6dbd54 fix a conditional compilation error 2020-02-29 22:33:22 +08:00
Vincent Wei dfe6869108 improve dummy engine to support PROCS runmode (sharedfb schema) 2020-02-29 22:23:47 +08:00
Vincent Wei 36ac251b21 improve dskDumpZOrder for PROCS runmode 2020-02-29 22:23:05 +08:00
Vincent Wei 513618d4ca rename notif_proc to NotifProc in CONTROL structure; fix conditional compilation errors 2020-02-29 17:52:40 +08:00
Vincent Wei df03ad014f Improve implementation of DumpWindow and moved to window.c 2020-02-29 17:44:01 +08:00
Vincent Wei e0b89ef232 add dump_window_details 2020-02-29 17:39:37 +08:00
Vincent Wei 44fc55701d special handle for procs runmode in dskDumpZOrder 2020-02-29 17:14:06 +08:00
Vincent Wei fc3bcabd67 handle MSG_DUMPZORDER 2020-02-29 17:13:28 +08:00
Vincent Wei f789ea719d allow HWND_NULL for GetNextChild and GetNextMainWindow 2020-02-29 17:13:04 +08:00