ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/deliantra/Deliantra-Client/Client.xs
(Generate patch)

Comparing deliantra/Deliantra-Client/Client.xs (file contents):
Revision 1.57 by root, Fri Apr 21 07:09:10 2006 UTC vs.
Revision 1.58 by root, Sun Apr 23 00:57:38 2006 UTC

40#define FOW_DARKNESS 32 40#define FOW_DARKNESS 32
41 41
42#define MAP_EXTEND_X 32 42#define MAP_EXTEND_X 32
43#define MAP_EXTEND_Y 512 43#define MAP_EXTEND_Y 512
44 44
45#define MIN_FONT_HEIGHT 8 * PANGO_SCALE
46
45typedef Mix_Chunk *CFClient__MixChunk; 47typedef Mix_Chunk *CFClient__MixChunk;
46typedef Mix_Music *CFClient__MixMusic; 48typedef Mix_Music *CFClient__MixMusic;
47 49
48static PangoContext *context; 50static PangoContext *context;
49static PangoFontMap *fontmap; 51static PangoFontMap *fontmap;
67 * reasonably well with bitstream vera 69 * reasonably well with bitstream vera
68 */ 70 */
69 PangoFontDescription *font = pango_context_get_font_description (context); 71 PangoFontDescription *font = pango_context_get_font_description (context);
70 72
71 int height = self->base_height * (PANGO_SCALE * 8 / 10); 73 int height = self->base_height * (PANGO_SCALE * 8 / 10);
74
75 if (height < MIN_FONT_HEIGHT)
76 height = MIN_FONT_HEIGHT;
72 77
73 if (pango_font_description_get_size (font) != height) 78 if (pango_font_description_get_size (font) != height)
74 { 79 {
75 pango_font_description_set_absolute_size (font, height); 80 pango_font_description_set_absolute_size (font, height);
76 pango_layout_context_changed (self->pl); 81 pango_layout_context_changed (self->pl);

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines