summaryrefslogtreecommitdiff
path: root/src/gui_w32.c
Commit message (Collapse)AuthorAgeFilesLines
* 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.
* patch 8.1.0443: unnecessary static function prototypesv8.1.0443Bram Moolenaar2018-09-301-8/+0
| | | | | Problem: Unnecessary static function prototypes. Solution: Remove unnecessary prototypes.
* patch 8.1.0427: MS-Windows GUI: using invalid encoded file namev8.1.0427Bram Moolenaar2018-09-221-6/+6
| | | | | Problem: MS-Windows GUI: using invalid encoded file name. Solution: Drop the file name and return NULL. (Ken Takata, closes #3467)
* patch 8.1.0197: Windows GUI: title for search/replace is wrongv8.1.0197Bram Moolenaar2018-07-201-4/+2
| | | | | Problem: Windows GUI: title for search/replace is wrong. Solution: Remove remark about doubling backslash. (closes #3230)
* patch 8.1.0121: crash when using ballooneval related to 'vartabstop'v8.1.0121Bram Moolenaar2018-06-281-8/+1
| | | | | Problem: Crash when using ballooneval related to 'vartabstop'. Solution: Initialize balloonEval->vts to NULL. (Markus Braun)
* patch 8.1.0105: all tab stops are the samev8.1.0105Bram Moolenaar2018-06-231-0/+7
| | | | | | Problem: All tab stops are the same. Solution: Add the variable tabstop feature. (Christian Brabandt, closes #2711)
* patch 8.1.0079: superfluous space in messagesv8.1.0079Bram Moolenaar2018-06-191-2/+2
| | | | | Problem: Superfluous space in messages. Solution: Remove the spaces. (closes #3030)
* Vim 8.1 releasev8.1.0000Bram Moolenaar2018-05-171-0/+2
| | | | Update version number and information. Fix a couple of tests.
* patch 8.0.1755: MS-Windows: high unicode char received as two utf-16 wordsv8.0.1755Bram Moolenaar2018-04-241-5/+31
| | | | | | Problem: MS-Windows GUI: high unicode char received as two utf-16 words. Solution: Keep the first word until the second word is received. (Chris Morgan, closes #2800)
* patch 8.0.1496: clearing a pointer takes two linesv8.0.1496Bram Moolenaar2018-02-101-2/+1
| | | | | | Problem: Clearing a pointer takes two lines. Solution: Add VIM_CLEAR() and replace vim_clear(). (Hirohito Higashi, closes #2629)
* patch 8.0.1450: GUI: endless loop when stopping cursor blinkingv8.0.1450Bram Moolenaar2018-01-311-3/+3
| | | | | | Problem: Endless loop when gui_mch_stop_blink() is called while blink_state is BLINK_OFF. (zdohnal) Solution: Avoid calling gui_update_cursor() recursively.
* patch 8.0.1449: slow redrawing with DirectXv8.0.1449Bram Moolenaar2018-01-311-28/+13
| | | | | | Problem: Slow redrawing with DirectX. Solution: Avoid calling gui_mch_flush() unnecessarily, especially when updating the cursor. (Ken Takata, closes #2560)
* patch 8.0.1390: DirectX scrolling can be slow, vertical positioning is offv8.0.1390Bram Moolenaar2017-12-141-14/+18
| | | | | | | Problem: DirectX scrolling can be slow, vertical positioning is off. Solution: Make scroll slightly faster when using "scrlines:1". Fix y position of displayed text. Fix DirectX with non-utf8 encoding. (Ken Takata, closes #2440)
* patch 8.0.1373: no error when settting 'renderoptions' before starting GUIv8.0.1373Bram Moolenaar2017-12-051-0/+3
| | | | | | Problem: No error when settting 'renderoptions' to an invalid value before starting the GUI. Solution: Always check the value. (Ken Takata, closes #2413)
* patch 8.0.1369: MS-Windows: drawing underline slow, mFallbackDC not updatedv8.0.1369Bram Moolenaar2017-12-051-67/+120
| | | | | | | Problem: MS-Windows: drawing underline, curl and strike-throw is slow, mFallbackDC not properly updated. Solution: Several performance improvements. (Ken Takata, Taro Muraoka, Yasuhiro Matsumoto, closes #2401)
* patch 8.0.1351: warning for unused variables building with MinGWv8.0.1351Bram Moolenaar2017-11-271-8/+12
| | | | | | Problem: Warning for unused variables building with MinGW. Solution: Change a few #ifdefs (suggested by John Marriott). Remove superfluous checks of FEAT_MBYTE.
* patch 8.0.1343: MS-Windows: does not show colored emojisv8.0.1343Bram Moolenaar2017-11-261-44/+120
| | | | | | Problem: MS-Windows: does not show colored emojis. Solution: Implement colored emojis. Improve drawing speed. Make 'taamode' work. (Taro Muraoka, Yasuhiro Matsumoto, Ken Takata, close #2375)
* patch 8.0.1338: USE_IM_CONTROL is confusing and incompletev8.0.1338Bram Moolenaar2017-11-251-2/+0
| | | | | Problem: USE_IM_CONTROL is confusing and incomplete. Solution: Just use FEAT_MBYTE. Call 'imactivatefunc' also without GUI.
* patch 8.0.1312: balloon_show() only works in terminal when compiled with GUIv8.0.1312Bram Moolenaar2017-11-181-9/+9
| | | | | | Problem: balloon_show() only works in terminal when compiled with the GUI. Solution: Add FEAT_BEVAL_GUI and refactor to move common code out of the GUI specific file.
* patch 8.0.1278: GUI window always resizes when adding scrollbarv8.0.1278Bram Moolenaar2017-11-091-2/+3
| | | | | | | Problem: GUI window always resizes when adding/removing a scrollbar, toolbar, etc. Solution: Add the 'k' flag in 'guioptions' to keep the GUI window size and change the number of lines/columns instead. (Ychin, closes #703)
* patch 8.0.1234: MS-Windows: composing chars are not shown properlyv8.0.1234Bram Moolenaar2017-10-281-6/+13
| | | | | | Problem: MS-Windows: composing characters are not shown properly. Solution: Pass base character and composing characters to the renderer at once. (Ken Takata, closes #2206)
* patch 8.0.1212: MS-Windows: tear-off menu does not work on 64 bitv8.0.1212Bram Moolenaar2017-10-221-3/+32
| | | | | | Problem: MS-Windows: tear-off menu does not work on 64 bit. (shaggyaxe) Solution: Change how the menu handle is looked up. (Ken Takata, closes #1205)
* patch 8.0.1211: cannot reorder tab pages with drag & dropv8.0.1211Bram Moolenaar2017-10-221-0/+94
| | | | | | Problem: Cannot reorder tab pages with drag & drop. Solution: Support drag & drop for GTK and MS-Windows. (Ken Takata, Masamichi Abe)
* patch 8.0.1150: MS-Windows GUI: dialog font size is incorrectv8.0.1150Bram Moolenaar2017-09-261-14/+15
| | | | | | Problem: MS-Windows GUI: dialog font size is incorrect. Solution: Pass flag to indicate 'encoding' or active codepage. (Yasuhiro Matsomoto, closes #2160)