summaryrefslogtreecommitdiff
path: root/src/gui_w32.c
Commit message (Collapse)AuthorAgeFilesLines
* patch 8.2.2008: MS-Windows GUI: handling channel messages lagsv8.2.2008Bram Moolenaar2020-11-181-3/+6
| | | | | Problem: MS-Windows GUI: handling channel messages lags. Solution: Reduce the wait time from 100 to 10 msec. (closes #7097)
* patch 8.2.1922: Win32: scrolling problems when part of window is off-screenv8.2.1922Bram Moolenaar2020-10-291-10/+49
| | | | | | | Problem: Win32: scrolling doesn't work properly when part of window is off-screen. Solution: Fall back to GDI scrolling if part of the window is off-screen. Handle multi-monitor setup better. (Ken Takata, closes #7219)
* patch 8.2.1752: GTK GUI: cannot map alt-? with <A-?>v8.2.1752Bram Moolenaar2020-09-271-2/+1
| | | | | | Problem: GTK GUI: cannot map alt-? with <A-?>. (Ingo Karkat) Solution: Adjust the characters for which the shift modifier is removed. (closes #7016) Make Motif and Win32 use the same function as GTK.
* patch 8.2.1232: MS-Windows GUI: Snap cancelled by split commandv8.2.1232Bram Moolenaar2020-07-171-4/+18
| | | | | | Problem: MS-Windows GUI: Snap cancelled by split command. Solution: Do not cancel Snap when splitting a window. (Ken Takata, closes #6467)
* patch 8.2.1231: MS-Windows: GUI code can be cleaned upv8.2.1231Bram Moolenaar2020-07-171-14/+4
| | | | | Problem: MS-Windows: GUI code can be cleaned up. Solution: Do a bit of cleaning up. (Ken Takata, closes #6465)
* patch 8.2.1228: scrollbars not flush against the window edges when maximisedv8.2.1228Bram Moolenaar2020-07-171-0/+28
| | | | | Problem: Scrollbars not flush against the window edges when maximised. Solution: Add padding. (Ken Takata, closes #5602, closes #6466)
* patch 8.2.1226: MS-Windows: windows positioning wrong depending on taskbarv8.2.1226Bram Moolenaar2020-07-161-38/+21
| | | | | | | Problem: MS-Windows: windows positioning wrong when the taskbar is placed at the top or left of the screen. Solution: Use GetWindowRect and MoveWindow APIs. (Yukihiro Nakadaira, Ken Takata, closes #6455)
* patch 8.2.0765: In the GUI can't use all the modifiers.v8.2.0765Bram Moolenaar2020-05-161-2/+2
| | | | | | Problem: In the GUI can't use all the modifiers. (Andri Möll) Solution: Do not apply Alt/Meta early, do it later like with the terminal. Avoid the Motif test from crashing.
* patch 8.2.0559: clearing a struct is verbosev8.2.0559Bram Moolenaar2020-04-121-3/+3
| | | | | Problem: Clearing a struct is verbose. Solution: Define and use CLEAR_FIELD() and CLEAR_POINTER().
* patch 8.2.0523: loops are repeatedv8.2.0523Bram Moolenaar2020-04-061-1/+1
| | | | | Problem: Loops are repeated. Solution: Use FOR_ALL_ macros. (Yegappan Lakshmanan, closes #5882)
* patch 8.1.2383: using old C style commentsv8.1.2383Bram Moolenaar2019-12-021-545/+548
| | | | | Problem: Using old C style comments. Solution: Use // comments where appropriate.
* patch 8.1.2376: preprocessor indents are incorrectv8.1.2376Bram Moolenaar2019-12-011-96/+96
| | | | | Problem: Preprocessor indents are incorrect. Solution: Fix the indents. (Ken Takata, closes #5298)
* patch 8.1.2371: FEAT_TEXT_PROP is a confusing namev8.1.2371Bram Moolenaar2019-11-301-1/+1
| | | | | Problem: FEAT_TEXT_PROP is a confusing name. Solution: Use FEAT_PROP_POPUP. (Naruhiko Nishino, closes #5291)
* patch 8.1.2361: MS-Windows: test failures related to VIMDLLv8.1.2361Bram Moolenaar2019-11-291-0/+13
| | | | | Problem: MS-Windows: test failures related to VIMDLL. Solution: Adjust code and tests. (Ken Takata, closes #5283)
* patch 8.1.2323: Old MSVC version no longer tested.v8.1.2323Bram Moolenaar2019-11-191-10/+1
| | | | | Problem: Old MSVC version no longer tested. Solution: Drop support for MSCV 2008 and older. (Ken Takata, closes #5248)
* patch 8.1.2318: MS-Windows GUI: main background shows in toolbarv8.1.2318Bram Moolenaar2019-11-171-0/+6
| | | | | Problem: MS-Windows GUI: main background shows in toolbar. Solution: Remove transparency from the toolbar. (Simon Sadler)
* patch 8.1.2301: MS-Windows GUI: drawing error when background color changesv8.1.2301Bram Moolenaar2019-11-151-2/+13
| | | | | Problem: MS-Windows GUI: drawing error when background color changes. Solution: Implement gui_mch_new_colors(). (Simon Sadler)
* patch 8.1.2257: MS-Windows GUI: scroll wheel always uses current windowv8.1.2257Bram Moolenaar2019-11-051-38/+36
| | | | | Problem: MS-Windows GUI: scroll wheel always uses current window. Solution: Add the 'scrollfocus' option for MS-Windows.
* patch 8.1.2254: MS-Windows: mouse scroll wheel doesn't work in popupv8.1.2254Bram Moolenaar2019-11-041-0/+26
| | | | | Problem: MS-Windows: mouse scroll wheel doesn't work in popup. Solution: Handle mouse wheel events separately. (closes #5138)
* patch 8.1.2202: MS-Windows: build failure with GUI and small featuresv8.1.2202Bram Moolenaar2019-10-231-0/+2
| | | | | Problem: MS-Windows: build failure with GUI and small features. Solution: Add #ifdef. (Michael Soyka, closes #5097)
* patch 8.1.2145: cannot map <C-H> when modifyOtherKeys is enabledv8.1.2145Bram Moolenaar2019-10-131-1/+1
| | | | | | Problem: Cannot map <C-H> when modifyOtherKeys is enabled. Solution: Add the <C-H> mapping twice, both with modifier and as 0x08. Use only the first one when modifyOtherKeys has been detected.
* patch 8.1.2064: MS-Windows: compiler warnings for unused argumentsv8.1.2064Bram Moolenaar2019-09-211-2/+2
| | | | | Problem: MS-Windows: compiler warnings for unused arguments. Solution: Add UNUSED. (Yegappan Lakshmanan, closes #4963)
* patch 8.1.1975: MS-Windows GUI responds slowly to timerv8.1.1975Bram Moolenaar2019-09-041-15/+17
| | | | | | Problem: MS-Windows GUI responds slowly to timer. Solution: Break out of wait loop when timer was added or input is available. (closes #4893)
* patch 8.1.1415: build error in MS-Windows GUIv8.1.1415Bram Moolenaar2019-05-281-1/+1
| | | | | Problem: Build error in MS-Windows GUI. Solution: Fix the LALLOC_MULT() argument.
* patch 8.1.1414: alloc() returning "char_u *" causes a lot of type castsv8.1.1414Bram Moolenaar2019-05-281-19/+16
| | | | | | Problem: Alloc() returning "char_u *" causes a lot of type casts. Solution: Have it return "void *". (Mike Williams) Define ALLOC_ONE() to check the simple allocations.
* patch 8.1.1386: unessesary type casts for lalloc()v8.1.1386Bram Moolenaar2019-05-241-2/+2
| | | | | Problem: Unessesary type casts for lalloc(). Solution: Remove type casts. Change lalloc(size, TRUE) to alloc(size).
* patch 8.1.1384: using "int" for alloc() often results in compiler warningsv8.1.1384Bram Moolenaar2019-05-241-3/+3
| | | | | | Problem: Using "int" for alloc() often results in compiler warnings. Solution: Use "size_t" and remove type casts. Remove alloc_check(), Vim only works with 32 bit ints anyway.
* patch 8.1.1306: Borland support is outdated and doesn't workv8.1.1306Bram Moolenaar2019-05-091-16/+1
| | | | | | Problem: Borland support is outdated and doesn't work. Solution: Remove Borland support, there are other (free) compilers available. (Thomas Dziedzic, Ken Takata, closes #4364)
* patch 8.1.1303: not possible to hide a balloonv8.1.1303Bram Moolenaar2019-05-091-0/+9
| | | | | | Problem: Not possible to hide a balloon. Solution: Hide the balloon when balloon_show() is called with an empty string or list. Add balloon_gettext().
* patch 8.1.1301: when compiled with VIMDLL some messages are not shownv8.1.1301Bram Moolenaar2019-05-081-0/+4
| | | | | | Problem: When compiled with VIMDLL some messages are not shown. Solution: Set/reset gui.in_use and gui.starting as needed. (Ken Takata, closes #4361)
* patch 8.1.1294: MS-Windows: Some fonts return wrong average char widthv8.1.1294Bram Moolenaar2019-05-071-1/+7
| | | | | Problem: MS-Windows: Some fonts return wrong average char width. Solution: Compute the average ourselves. (Ken Takata, closes #4356)
* patch 8.1.1238: MS-Windows: compiler warning for sprintf() formatv8.1.1238Bram Moolenaar2019-04-291-1/+1
| | | | | Problem: MS-Windows: compiler warning for sprintf() format. Solution: Change %d to %ld. (Ken Takata)
* patch 8.1.1230: a lot of code is shared between vim.exe and gvim.exev8.1.1230Bram Moolenaar2019-04-281-26/+154
| | | | | | Problem: A lot of code is shared between vim.exe and gvim.exe. Solution: Optionally put the shared code in vim.dll. (Ken Takata, closes #4287)
* patch 8.1.1224: MS-Windows: cannot specify font weightv8.1.1224Bram Moolenaar2019-04-281-5/+10
| | | | | | Problem: MS-Windows: cannot specify font weight. Solution: Add the "W" option to 'guifont'. (closes #4309) Move GUI font explanation out of options.txt.
* patch 8.1.1217: MS-Windows: no space reserved for font quality namev8.1.1217Bram Moolenaar2019-04-271-1/+2
| | | | | Problem: MS-Windows: no space reserved for font quality name. Solution: Add quality_name length if present. (Ken Takata, closes #4311)
* patch 8.1.1103: MS-Windows: old API calls are no longer neededv8.1.1103Bram Moolenaar2019-04-021-395/+135
| | | | | Problem: MS-Windows: old API calls are no longer needed. Solution: Always use the wide functions. (Ken Takata, closes #4199)
* patch 8.1.1086: too many curly bracesv8.1.1086Bram Moolenaar2019-03-301-8/+0
| | | | | | Problem: Too many curly braces. Solution: Remove curly braces where they are not needed. (Hirohito Higashi, closes #3982)
* patch 8.1.1081: MS-Windows: cannot use some fontsv8.1.1081Bram Moolenaar2019-03-301-55/+51
| | | | | | Problem: MS-Windows: cannot use fonts whose name cannot be represented in the current code page. Solution: Use wide font functions. (Ken Takata, closes #4000)
* patch 8.1.1066: VIMDLL isn't actually usedv8.1.1066Bram Moolenaar2019-03-281-3/+0
| | | | | Problem: VIMDLL isn't actually used. Solution: Remove VIMDLL support.
* patch 8.1.1060: MS-Windows: get_cmd_args() is no longer neededv8.1.1060Bram Moolenaar2019-03-271-145/+0
| | | | | | Problem: MS-Windows: get_cmd_args() is no longer needed, get_cmd_argsW() is always used. Solution: Remove get_cmd_args(). (Ken Takata, closes #4171)
* patch 8.1.1029: DirectWrite doesn't take 'linespace' into accountv8.1.1029Bram Moolenaar2019-03-211-1/+2
| | | | | Problem: DirectWrite doesn't take 'linespace' into account. Solution: Include 'linespace' in the position. (Ken Takata, closes #4137)
* patch 8.1.0840: getchar(0) never returns a character in the terminalv8.1.0840Bram Moolenaar2019-01-281-3/+5
| | | | | Problem: getchar(0) never returns a character in the terminal. Solution: Call wait_func() at least once.
* patch 8.1.0808: MS-Windows: build error with GUIv8.1.0808Bram Moolenaar2019-01-241-1/+1
| | | | | Problem: MS-Windows: build error with GUI. Solution: Remove "static".
* patch 8.1.0806: too many #ifdefsv8.1.0806Bram Moolenaar2019-01-241-261/+47
| | | | | Problem: Too many #ifdefs. Solution: Graduate FEAT_MBYTE, part 2.
* patch 8.1.0782: Win32: cursor blinks when Vim is not activev8.1.0782Bram Moolenaar2019-01-191-6/+0
| | | | | | Problem: Win32: cursor blinks when Vim is not active. Solution: Remove call to setActiveWindow(). (Yasuhiro Matsumoto, closes #3778)
* patch 8.1.0779: argument for message functions is inconsistentv8.1.0779Bram Moolenaar2019-01-191-1/+1
| | | | | Problem: Argument for message functions is inconsistent. Solution: Make first argument to msg() "char *".
* patch 8.1.0743: giving error messages is not flexiblev8.1.0743Bram Moolenaar2019-01-131-6/+6
| | | | | | | | Problem: Giving error messages is not flexible. Solution: Add semsg(). Change argument from "char_u *" to "char *", also for msg() and get rid of most MSG macros. (Ozaki Kiichi, closes #3302) Also make emsg() accept a "char *" argument. Get rid of an enormous number of type casts.
* patch 8.1.0652: freeing memory for balloon eval too earlyv8.1.0652Bram Moolenaar2018-12-281-10/+8
| | | | | | Problem: Freeing memory for balloon eval too early. Solution: Store the pointer in BalloonEval and free it later. (Yasuhiro Matsumoto, closes #3725)
* patch 8.1.0647: MS-Windows: balloon_show() does not handle wide charactersv8.1.0647Bram Moolenaar2018-12-271-21/+150
| | | | | Problem: MS-Windows: balloon_show() does not handle wide characters. Solution: Use CreateWindowExW(). (Yasuhiro Matsumoto, closes #3708)
* patch 8.1.0528: various typos in commentsv8.1.0528Bram Moolenaar2018-11-161-1/+1
| | | | | Problem: Various typos in comments. Solution: Fix the typos.