mirror of
https://git.tartarus.org/simon/putty.git
synced 2025-07-05 21:42:47 -05:00
Jimen Ching's patches to remove compiler warnings
[originally from svn r183]
This commit is contained in:
5
window.c
5
window.c
@ -1412,7 +1412,7 @@ void set_sbar (int total, int start, int page) {
|
||||
SetScrollInfo (hwnd, SB_VERT, &si, TRUE);
|
||||
}
|
||||
|
||||
Context get_ctx() {
|
||||
Context get_ctx(void) {
|
||||
HDC hdc;
|
||||
if (hwnd) {
|
||||
hdc = GetDC (hwnd);
|
||||
@ -1540,11 +1540,10 @@ void get_clip (void **p, int *len) {
|
||||
*/
|
||||
void optimised_move (int to, int from, int lines) {
|
||||
RECT r;
|
||||
int min, max, d;
|
||||
int min, max;
|
||||
|
||||
min = (to < from ? to : from);
|
||||
max = to + from - min;
|
||||
d = max - min;
|
||||
|
||||
r.left = 0; r.right = cols * font_width;
|
||||
r.top = min * font_height; r.bottom = (max+lines) * font_height;
|
||||
|
Reference in New Issue
Block a user