comparison src/gui_w32.c @ 18662:652ac5edf8d0 v8.1.2323

patch 8.1.2323: Old MSVC version no longer tested. Commit: https://github.com/vim/vim/commit/a07549008207099e8b7884d11d7c8a106e290cb9 Author: Bram Moolenaar <Bram@vim.org> Date: Tue Nov 19 23:01:28 2019 +0100 patch 8.1.2323: Old MSVC version no longer tested. Problem: Old MSVC version no longer tested. Solution: Drop support for MSCV 2008 and older. (Ken Takata, closes https://github.com/vim/vim/issues/5248)
author Bram Moolenaar <Bram@vim.org>
date Tue, 19 Nov 2019 23:15:04 +0100
parents 94b88fa5825d
children e9b2ade1adbd
comparison
equal deleted inserted replaced
18661:13331e05a1c8 18662:652ac5edf8d0
1283 gui_mch_new_colors(void) 1283 gui_mch_new_colors(void)
1284 { 1284 {
1285 HBRUSH prevBrush; 1285 HBRUSH prevBrush;
1286 1286
1287 s_brush = CreateSolidBrush(gui.back_pixel); 1287 s_brush = CreateSolidBrush(gui.back_pixel);
1288 #ifdef SetClassLongPtr
1289 prevBrush = (HBRUSH)SetClassLongPtr( 1288 prevBrush = (HBRUSH)SetClassLongPtr(
1290 s_hwnd, GCLP_HBRBACKGROUND, (LONG_PTR)s_brush); 1289 s_hwnd, GCLP_HBRBACKGROUND, (LONG_PTR)s_brush);
1291 #else
1292 prevBrush = (HBRUSH)SetClassLong(
1293 s_hwnd, GCL_HBRBACKGROUND, (long_u)s_brush);
1294 #endif
1295 InvalidateRect(s_hwnd, NULL, TRUE); 1290 InvalidateRect(s_hwnd, NULL, TRUE);
1296 DeleteObject(prevBrush); 1291 DeleteObject(prevBrush);
1297 } 1292 }
1298 1293
1299 /* 1294 /*
3420 { 3415 {
3421 if (shape >= MSHAPE_NUMBERED) 3416 if (shape >= MSHAPE_NUMBERED)
3422 idc = IDC_ARROW; 3417 idc = IDC_ARROW;
3423 else 3418 else
3424 idc = mshape_idcs[shape]; 3419 idc = mshape_idcs[shape];
3425 #ifdef SetClassLongPtr 3420 SetClassLongPtr(s_textArea, GCLP_HCURSOR, (LONG_PTR)LoadCursor(NULL, idc));
3426 SetClassLongPtr(s_textArea, GCLP_HCURSOR, (__int3264)(LONG_PTR)LoadCursor(NULL, idc));
3427 #else
3428 SetClassLong(s_textArea, GCL_HCURSOR, (long_u)LoadCursor(NULL, idc));
3429 #endif
3430 if (!p_mh) 3421 if (!p_mh)
3431 { 3422 {
3432 POINT mp; 3423 POINT mp;
3433 3424
3434 /* Set the position to make it redrawn with the new shape. */ 3425 /* Set the position to make it redrawn with the new shape. */