comparison src/testdir/test_gui.vim @ 24035:ee5b6208f725 v8.2.2559

patch 8.2.2559: MS-Windows: guifont test fails on Windows XP Commit: https://github.com/vim/vim/commit/3650fd709807d5ac182e28d952cbd790c1ad0a6a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Feb 28 23:13:40 2021 +0100 patch 8.2.2559: MS-Windows: guifont test fails on Windows XP Problem: MS-Windows: guifont test fails on Windows XP. Solution: Check windowsversion().
author Bram Moolenaar <Bram@vim.org>
date Sun, 28 Feb 2021 23:15:03 +0100
parents ecc6bcc644b7
children 4cb423b9250d
comparison
equal deleted inserted replaced
24034:2d16022ab61c 24035:ee5b6208f725
386 if has('win32') 386 if has('win32')
387 " Invalid font names are accepted in GTK GUI 387 " Invalid font names are accepted in GTK GUI
388 call assert_fails('set guifont=xa1bc23d7f', 'E596:') 388 call assert_fails('set guifont=xa1bc23d7f', 'E596:')
389 endif 389 endif
390 390
391 if exists('+renderoptions') 391 " This only works if 'renderoptions' exists and does not work for Windows XP
392 " and older.
393 if exists('+renderoptions') && windowsversion() !~ '^[345]\.'
392 " doing this four times used to cause a crash 394 " doing this four times used to cause a crash
393 set renderoptions=type:directx 395 set renderoptions=type:directx
394 for i in range(5) 396 for i in range(5)
395 set guifont= 397 set guifont=
396 endfor 398 endfor