Commit Graph

  • 0d7a90d546 cleanup Vincent Wei 2020-03-06 17:30:47 +08:00
  • 38053abaa6 cleanup Vincent Wei 2020-03-06 17:30:20 +08:00
  • 70b310ec36 restore the old implementation of NotifyParentEx Vincent Wei 2020-03-06 17:30:05 +08:00
  • 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 Vincent Wei 2020-03-06 15:53:19 +08:00
  • 85a18df3ea remove old deprecated code Vincent Wei 2020-03-06 15:52:16 +08:00
  • b18460fe3a tune some constants Vincent Wei 2020-03-06 15:51:51 +08:00
  • 8a845ac965 fix some conditional compilation errors Vincent Wei 2020-03-06 14:11:35 +08:00
  • 1974d27deb make sure the event parsor thread is joinable Vincent Wei 2020-03-06 11:09:08 +08:00
  • 7f58a1775e tune Vincent Wei 2020-03-06 11:08:44 +08:00
  • 792359eb62 fix possible memory leaks for free notification message objects Vincent Wei 2020-03-06 11:08:33 +08:00
  • f23949349b add some helpers Vincent Wei 2020-03-06 10:32:47 +08:00
  • 50d0ec55eb fix memory leaks in ReleaseDC: do not set region for released DC in slots Vincent Wei 2020-03-06 10:32:31 +08:00
  • 243f24d0a3 fix memory leaks in VirtualWindwoCleanup and MainWindowCleanup Vincent Wei 2020-03-06 10:31:31 +08:00
  • b718a9a0aa fix memory leak for not deleting null devfonts Vincent Wei 2020-03-06 10:31:09 +08:00
  • 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 Vincent Wei 2020-03-05 21:42:22 +08:00
  • b85901dad0 tune description words; declare new API SendPriorNotifyMessage; Make EmptyMessageQueue available for all runmodes Vincent Wei 2020-03-05 20:47:21 +08:00
  • 030671ad7e add ERR_MSG_CANCELED and tune the error values Vincent Wei 2020-03-05 20:44:09 +08:00
  • 283c4e4bc4 mark a window as TODEL after calling ThrowAwayMessages; tune name of some internal inline functions Vincent Wei 2020-03-05 13:04:31 +08:00
  • 5812c11f7c tune GetRootWindow to return the number of windows Vincent Wei 2020-03-04 22:52:36 +08:00
  • 5224e31084 cleanup Vincent Wei 2020-03-04 21:54:28 +08:00
  • 71d0da248d use DFS for broadcast message Vincent Wei 2020-03-04 20:58:23 +08:00
  • 627a71346b cleanup Vincent Wei 2020-03-04 20:57:09 +08:00
  • 2c58b6aeab fix a bug: wrong values for WIN_SEARCH_FILTER_MAIN and WIN_SEARCH_FILTER_VIRT Vincent Wei 2020-03-04 20:56:44 +08:00
  • 90371bd793 rename GetSecondarySubDC to GetDCInSecondarySurface Vincent Wei 2020-03-04 15:37:01 +08:00
  • 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 Vincent Wei 2020-03-04 15:36:34 +08:00
  • 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. Vincent Wei 2020-03-04 15:30:26 +08:00
  • 10c32236e7 always use CreatePrivateClientDC and DeletePrivateDC; call __mg_delete_secondary_dc instead of DeleteSecondaryDC when remove a main window Vincent Wei 2020-03-04 15:29:23 +08:00
  • 097e379ec2 add MG_IS_GRAPHICS_WINDOW Vincent Wei 2020-03-04 15:28:00 +08:00
  • bef9c5e476 add dump_gal_rect and dump_surface Vincent Wei 2020-03-04 15:27:43 +08:00
  • 88603deb44 tune get_effective_dc and release_effective_dc Vincent Wei 2020-03-04 15:27:16 +08:00
  • 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 Vincent Wei 2020-03-04 15:23:34 +08:00
  • f27d0a96b4 introduce GetDCEx, GetDCInSecondarySurface, GetEffectiveCD; mark GetSecondaryClientDC, ReleaseSecondaryDC as deprecated; tune the description words Vincent Wei 2020-03-04 15:21:04 +08:00
  • 6d0fc20092 do not call dc_GenerateMemDCECRgn by force in __mg_check_ecrgn Vincent Wei 2020-03-03 18:43:49 +08:00
  • 4111e5a1b1 restore memset for a new RGBSurface Vincent Wei 2020-03-03 18:38:36 +08:00
  • 022b23ff32 inuse -> bInUse Vincent Wei 2020-03-03 18:37:58 +08:00
  • 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. Vincent Wei 2020-03-03 15:42:22 +08:00
  • 039fa8a86a cleanup Vincent Wei 2020-03-03 15:40:37 +08:00
  • 01579a0a89 for invalid widht and or height, set a minimal size for the surface Vincent Wei 2020-03-03 15:40:22 +08:00
  • 06b783e0a8 cleanup Vincent Wei 2020-03-03 15:38:38 +08:00
  • 262bf68807 move gui_Control to ctrlclass.h as inline function Vincent Wei 2020-03-03 15:38:17 +08:00
  • cc20828ddd more words for 4.9.0 release notes Vincent Wei 2020-03-02 21:31:14 +08:00
  • 48037493f5 improve the fallback compositor Vincent Wei 2020-03-02 19:29:15 +08:00
  • 38c4a3e632 assign value to __mg_tick_counter when startup Vincent Wei 2020-03-02 19:28:52 +08:00
  • 404349dd45 tune the implementation of map: make sure that the operation to the map is atomical Vincent Wei 2020-03-02 14:54:17 +08:00
  • 3ce11d8882 move copy_key_string, free_key_string, and comp_key_string to map.h as static inline functions Vincent Wei 2020-03-02 14:39:10 +08:00
  • 9f1a7940c5 implement __mg_map_find_replace_or_insert Vincent Wei 2020-03-02 14:38:14 +08:00
  • 9fdfea572d declare __mg_map_find_replace_or_insert, mark __mg_map_find_or_insert and __mg_map_find_or_insert_ex as deprecated Vincent Wei 2020-03-02 14:37:59 +08:00
  • a6a9388fdf destroy local data map in DestroyMainWindow, DestroyVirtualWindow, and DestroyWindow; implement SetWindowLocalData, RemoveWindowLocalData, and GetWindowLocalData Vincent Wei 2020-03-02 14:36:54 +08:00
  • 000ff2fbab tune description text Vincent Wei 2020-03-02 14:34:00 +08:00
  • 0906c88c1f tune code according to the new prototype of CreaetMainWindowEx2 Vincent Wei 2020-03-02 11:17:06 +08:00
  • 7f45d5232d improve the implementation of map based on rbtree to having the alternative free function per entry Vincent Wei 2020-03-02 11:16:13 +08:00
  • e1c44ebaa9 add mapLocalData fields for all kinds of window Vincent Wei 2020-03-02 11:15:16 +08:00
  • c0869dc898 tune implementation of CreateMainWindowEx2 Vincent Wei 2020-03-02 11:14:37 +08:00
  • 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 Vincent Wei 2020-03-02 11:13:09 +08:00
  • ea43d9e3ce disable set the pixels to 0 for a new RGB surface Vincent Wei 2020-03-01 23:01:40 +08:00
  • 837872c8bb handle resized surface correctly Vincent Wei 2020-03-01 23:01:10 +08:00
  • cf71cd059c handle KS_MIDDLEBUTTON Vincent Wei 2020-03-01 19:32:05 +08:00
  • 8f01d078d9 adjust to a reasonable position for a main window with style WS_EX_AUTOPOSITION Vincent Wei 2020-03-01 18:38:52 +08:00
  • 48c2ad5388 tune the implementation of NotifyParentEx Vincent Wei 2020-03-01 18:19:17 +08:00
  • e816245b91 use DWORD instead of int for timeoutusec, repeatusec, and dblclicktime Vincent Wei 2020-03-01 18:17:24 +08:00
  • 08eace2093 handle middle button for MSG_MBUTTONDOWN, MSG_MBUTTONUP. and MSG_MBUTTONDBLCLK messages Vincent Wei 2020-03-01 18:16:55 +08:00
  • 37b0e11146 handle middle button for MSG_MBUTTONDOWN, MSG_MBUTTONUP. and MSG_MBUTTONDBLCLK messages Vincent Wei 2020-03-01 18:16:42 +08:00
  • 08506e3cbb remove unnecessary kernel_GetGCRgnInfo functions Vincent Wei 2020-03-01 17:34:21 +08:00
  • 94b4a7eedb tune Vincent Wei 2020-02-29 22:34:21 +08:00
  • 7d5a6dbd54 fix a conditional compilation error Vincent Wei 2020-02-29 22:33:22 +08:00
  • dfe6869108 improve dummy engine to support PROCS runmode (sharedfb schema) Vincent Wei 2020-02-29 22:23:47 +08:00
  • 36ac251b21 improve dskDumpZOrder for PROCS runmode Vincent Wei 2020-02-29 22:23:05 +08:00
  • 513618d4ca rename notif_proc to NotifProc in CONTROL structure; fix conditional compilation errors Vincent Wei 2020-02-29 17:52:40 +08:00
  • df03ad014f Improve implementation of DumpWindow and moved to window.c Vincent Wei 2020-02-29 17:44:01 +08:00
  • e0b89ef232 add dump_window_details Vincent Wei 2020-02-29 17:39:37 +08:00
  • 44fc55701d special handle for procs runmode in dskDumpZOrder Vincent Wei 2020-02-29 17:14:06 +08:00
  • fc3bcabd67 handle MSG_DUMPZORDER Vincent Wei 2020-02-29 17:13:28 +08:00
  • f789ea719d allow HWND_NULL for GetNextChild and GetNextMainWindow Vincent Wei 2020-02-29 17:13:04 +08:00
  • 634fc28413 cleanup: remove deprecated code; implement dskDumpZOrder Vincent Wei 2020-02-29 16:08:15 +08:00
  • a7cfd21020 fix a bug in travel_all_hosted: duplicated calling of callback; tune travel_all_hosted: use breadth first traveling policy due to overflow of the post message queue; tune format Vincent Wei 2020-02-29 16:07:34 +08:00
  • 6d04b42191 fix a bug: __kernel_get_next_znode may returns -1; handle MSG_DUMPZORDER Vincent Wei 2020-02-29 16:04:53 +08:00
  • 8151cc2428 add message strings for MSG_MOVEWINDOW and MSG_DUMPZORDER Vincent Wei 2020-02-29 16:03:23 +08:00
  • dd34cd58a5 tune CreateMainWindowEx2 for error handling; Call SendNotifyMessage in the end of MoveWindow Vincent Wei 2020-02-29 16:03:01 +08:00
  • 734debce34 add MSG_MOVEWINDOW which will be sent as a notification after calling MoveWindow; add new internal message MSG_DUMPZORDER Vincent Wei 2020-02-29 16:02:00 +08:00
  • 04535d691f use new inline functions for checking and returning the window ptr Vincent Wei 2020-02-28 17:12:05 +08:00
  • 92a20d4cb8 add macros MG_IS_APP_WINDOW, MG_IS_CONTROL_WINDOW, MG_IS_DESTROYED_MAIN_WINDOW, and MG_IS_DESTROYED_VIRT_WINDOW; tune all macros for window type; add inline functions: checkAndGetMainWindowPtrOfMainWin and checkAndGetMainWindowPtrOfControl Vincent Wei 2020-02-28 17:11:18 +08:00
  • d9e14139cf cleanup Vincent Wei 2020-02-28 17:09:45 +08:00
  • 2d8fda08e7 cleanup the checking of window type for various window APIs Vincent Wei 2020-02-28 17:08:14 +08:00
  • e2e2b1ef94 check length of class name and reserved names Vincent Wei 2020-02-28 17:07:40 +08:00
  • 69ab18b5ab list functions work for virtual window; add class name for virtual window Vincent Wei 2020-02-28 16:56:24 +08:00
  • dfe6c026ef fix a fatal bug: call __mg_throw_away_messages in CreateMainWindowEx2, CreateVirtualWindow, and CreateWindowEx2 when failed to create a new window. Vincent Wei 2020-02-27 21:10:23 +08:00
  • ace5a0d263 tune Vincent Wei 2020-02-27 21:04:15 +08:00
  • 6b1b850312 implement __mg_throw_away_messages and tune ThrowAwayMessages Vincent Wei 2020-02-27 21:04:02 +08:00
  • ba2e8358b2 declare internal function __mg_throw_away_messages Vincent Wei 2020-02-27 21:02:31 +08:00
  • 851fc9aeff fix a bug: bad value for WS_EX_WINTYPE_LAUNCHER Vincent Wei 2020-02-27 21:00:31 +08:00
  • ecf1e9db90 tune words Vincent Wei 2020-02-27 10:50:56 +08:00
  • 16d3a63fbb rename get_valid_dc to get_effective_dc; rename release_valid_dc to release_effective_dc Vincent Wei 2020-02-27 10:40:17 +08:00
  • 98cdfd9bfb Call SyncUpdate in ReleaseDC instead of EndPaint Vincent Wei 2020-02-27 10:38:05 +08:00
  • 366bbb1ff0 always call ReleaseDC even if it is a private CDC in release_valid_dc Vincent Wei 2020-02-27 10:36:11 +08:00
  • 2ae820992f debug output Vincent Wei 2020-02-27 09:59:37 +08:00
  • f005efe2e5 do not call SetCursor in handling low level events Vincent Wei 2020-02-27 09:59:14 +08:00
  • 40628a7fbe do not call GAL_SyncUpdate for screen surface in ShowCursorForGDI Vincent Wei 2020-02-27 09:58:45 +08:00
  • 283d421721 tune Vincent Wei 2020-02-27 09:57:49 +08:00
  • ccb176419a fix a bug: bad handle for backspace Vincent Wei 2020-02-27 09:57:20 +08:00
  • e8a26956d7 tune Vincent Wei 2020-02-27 09:56:53 +08:00