1
0
mirror of https://git.tartarus.org/simon/putty.git synced 2025-07-18 11:31:00 -05:00

Configurable font quality on Windows. (Together with a little bit of

macro stuff to cope with the inadequacy of VC++ 6 headers.)

[originally from svn r6519]
This commit is contained in:
Owen Dunn
2006-01-11 23:42:02 +00:00
parent ad05f78303
commit dd924a644e
5 changed files with 46 additions and 2 deletions

View File

@ -27,8 +27,30 @@ struct FontSpec {
int charset;
};
#ifndef CLEARTYPE_QUALITY
#define CLEARTYPE_QUALITY 5
#endif
#define FONT_QUALITY(fq) ( \
(fq) == FQ_DEFAULT ? DEFAULT_QUALITY : \
(fq) == FQ_ANTIALIASED ? ANTIALIASED_QUALITY : \
(fq) == FQ_NONANTIALIASED ? NONANTIALIASED_QUALITY : \
CLEARTYPE_QUALITY)
/* VC++ 6 doesn't have GetWindowLongPtr and friends. Degrade nicely. */
#ifndef GWLP_USERDATA
#define GetWindowLongPtr GetWindowLong
#define SetWindowLongPtr SetWindowLong
#define GWLP_USERDATA GWL_USERDATA
#define DWLP_MSGRESULT DWL_MSGRESULT
#endif
#define BOXFLAGS DLGWINDOWEXTRA
#ifdef LONG_PTR
#define BOXRESULT (DLGWINDOWEXTRA + sizeof(LONG_PTR))
#else
#define BOXRESULT (DLGWINDOWEXTRA + 4)
#endif
#define DF_END 0x0001
/*