Lines Matching refs:csbi
1663 CONSOLE_SCREEN_BUFFER_INFO csbi; in WaitForChar() local
1665 if (GetConsoleScreenBufferInfo(g_hConOut, &csbi)) in WaitForChar()
1667 if (csbi.dwCursorPosition.Y != msg_row) in WaitForChar()
1710 CONSOLE_SCREEN_BUFFER_INFO csbi; in WaitForChar() local
1711 GetConsoleScreenBufferInfo(g_hConOut, &csbi); in WaitForChar()
1712 dwSize.X = csbi.srWindow.Right - csbi.srWindow.Left + 1; in WaitForChar()
1713 dwSize.Y = csbi.srWindow.Bottom - csbi.srWindow.Top + 1; in WaitForChar()
2421 CONSOLE_SCREEN_BUFFER_INFO csbi; in ClearConsoleBuffer() local
2425 if (!GetConsoleScreenBufferInfo(g_hConOut, &csbi)) in ClearConsoleBuffer()
2428 NumCells = csbi.dwSize.X * csbi.dwSize.Y; in ClearConsoleBuffer()
2454 CONSOLE_SCREEN_BUFFER_INFO csbi; in FitConsoleWindow() local
2458 if (GetConsoleScreenBufferInfo(g_hConOut, &csbi)) in FitConsoleWindow()
2465 if (csbi.srWindow.Right >= dwBufferSize.X) in FitConsoleWindow()
2467 dwWindowSize.X = SRWIDTH(csbi.srWindow); in FitConsoleWindow()
2470 csbi.srWindow.Right = dwBufferSize.X - 1; in FitConsoleWindow()
2471 csbi.srWindow.Left = dwBufferSize.X - dwWindowSize.X; in FitConsoleWindow()
2474 if (csbi.srWindow.Bottom >= dwBufferSize.Y) in FitConsoleWindow()
2476 dwWindowSize.Y = SRHEIGHT(csbi.srWindow); in FitConsoleWindow()
2479 csbi.srWindow.Bottom = dwBufferSize.Y - 1; in FitConsoleWindow()
2480 csbi.srWindow.Top = dwBufferSize.Y - dwWindowSize.Y; in FitConsoleWindow()
2485 if (!SetConsoleWindowInfo(g_hConOut, TRUE, &csbi.srWindow)) in FitConsoleWindow()
2805 CONSOLE_SCREEN_BUFFER_INFO csbi; in mch_init_c() local
2834 GetConsoleScreenBufferInfo(g_hConOut, &csbi); in mch_init_c()
2835 g_attrCurrent = g_attrDefault = csbi.wAttributes; in mch_init_c()
3810 CONSOLE_SCREEN_BUFFER_INFO csbi; in mch_get_shellsize() local
3827 else if (GetConsoleScreenBufferInfo(g_hConOut, &csbi)) in mch_get_shellsize()
3829 Rows = csbi.srWindow.Bottom - csbi.srWindow.Top + 1; in mch_get_shellsize()
3830 Columns = csbi.srWindow.Right - csbi.srWindow.Left + 1; in mch_get_shellsize()
3891 CONSOLE_SCREEN_BUFFER_INFO csbi; // hold current console buffer info in ResizeConBufAndWindow() local
3913 if (GetConsoleScreenBufferInfo(g_hConOut, &csbi)) in ResizeConBufAndWindow()
3917 sx = csbi.srWindow.Right - csbi.srWindow.Left + 1; in ResizeConBufAndWindow()
3918 sy = csbi.srWindow.Bottom - csbi.srWindow.Top + 1; in ResizeConBufAndWindow()
7907 DYN_CONSOLE_SCREEN_BUFFER_INFOEX csbi; in vtp_init() local
7927 csbi.cbSize = sizeof(csbi); in vtp_init()
7929 pGetConsoleScreenBufferInfoEx(g_hConOut, &csbi); in vtp_init()
7930 save_console_bg_rgb = (guicolor_T)csbi.ColorTable[g_color_index_bg]; in vtp_init()
7931 save_console_fg_rgb = (guicolor_T)csbi.ColorTable[g_color_index_fg]; in vtp_init()
7936 bg = (COLORREF)csbi.ColorTable[g_color_index_bg]; in vtp_init()
7937 fg = (COLORREF)csbi.ColorTable[g_color_index_fg]; in vtp_init()
8154 DYN_CONSOLE_SCREEN_BUFFER_INFOEX csbi; in set_console_color_rgb() local
8173 csbi.cbSize = sizeof(csbi); in set_console_color_rgb()
8175 pGetConsoleScreenBufferInfoEx(g_hConOut, &csbi); in set_console_color_rgb()
8177 csbi.cbSize = sizeof(csbi); in set_console_color_rgb()
8178 csbi.srWindow.Right += 1; in set_console_color_rgb()
8179 csbi.srWindow.Bottom += 1; in set_console_color_rgb()
8180 store_console_bg_rgb = csbi.ColorTable[g_color_index_bg]; in set_console_color_rgb()
8181 store_console_fg_rgb = csbi.ColorTable[g_color_index_fg]; in set_console_color_rgb()
8182 csbi.ColorTable[g_color_index_bg] = (COLORREF)bg; in set_console_color_rgb()
8183 csbi.ColorTable[g_color_index_fg] = (COLORREF)fg; in set_console_color_rgb()
8185 pSetConsoleScreenBufferInfoEx(g_hConOut, &csbi); in set_console_color_rgb()
8241 DYN_CONSOLE_SCREEN_BUFFER_INFOEX csbi; in reset_console_color_rgb() local
8246 csbi.cbSize = sizeof(csbi); in reset_console_color_rgb()
8248 pGetConsoleScreenBufferInfoEx(g_hConOut, &csbi); in reset_console_color_rgb()
8250 csbi.cbSize = sizeof(csbi); in reset_console_color_rgb()
8251 csbi.srWindow.Right += 1; in reset_console_color_rgb()
8252 csbi.srWindow.Bottom += 1; in reset_console_color_rgb()
8253 csbi.ColorTable[g_color_index_bg] = (COLORREF)store_console_bg_rgb; in reset_console_color_rgb()
8254 csbi.ColorTable[g_color_index_fg] = (COLORREF)store_console_fg_rgb; in reset_console_color_rgb()
8256 pSetConsoleScreenBufferInfoEx(g_hConOut, &csbi); in reset_console_color_rgb()
8267 DYN_CONSOLE_SCREEN_BUFFER_INFOEX csbi; in restore_console_color_rgb() local
8269 csbi.cbSize = sizeof(csbi); in restore_console_color_rgb()
8271 pGetConsoleScreenBufferInfoEx(g_hConOut, &csbi); in restore_console_color_rgb()
8273 csbi.cbSize = sizeof(csbi); in restore_console_color_rgb()
8274 csbi.srWindow.Right += 1; in restore_console_color_rgb()
8275 csbi.srWindow.Bottom += 1; in restore_console_color_rgb()
8276 csbi.ColorTable[g_color_index_bg] = (COLORREF)save_console_bg_rgb; in restore_console_color_rgb()
8277 csbi.ColorTable[g_color_index_fg] = (COLORREF)save_console_fg_rgb; in restore_console_color_rgb()
8279 pSetConsoleScreenBufferInfoEx(g_hConOut, &csbi); in restore_console_color_rgb()
8340 CONSOLE_SCREEN_BUFFER_INFO csbi; in resize_console_buf() local
8344 if (GetConsoleScreenBufferInfo(g_hConOut, &csbi)) in resize_console_buf()
8346 coord.X = SRWIDTH(csbi.srWindow); in resize_console_buf()
8347 coord.Y = SRHEIGHT(csbi.srWindow); in resize_console_buf()