ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/main.C
(Generate patch)

Comparing rxvt-unicode/src/main.C (file contents):
Revision 1.150 by root, Wed Dec 21 14:19:19 2005 UTC vs.
Revision 1.151 by root, Wed Dec 21 19:50:16 2005 UTC

31 *---------------------------------------------------------------------*/ 31 *---------------------------------------------------------------------*/
32 32
33#include "../config.h" /* NECESSARY */ 33#include "../config.h" /* NECESSARY */
34#include "rxvt.h" /* NECESSARY */ 34#include "rxvt.h" /* NECESSARY */
35 35
36#include <limits>
37
36#include <csignal> 38#include <csignal>
37#include <cstring> 39#include <cstring>
38 40
39#ifdef TTY_GID_SUPPORT 41#ifdef TTY_GID_SUPPORT
40# include <grp.h> 42# include <grp.h>
718 if (rs[Rs_geometry]) 720 if (rs[Rs_geometry])
719 flags = XParseGeometry (rs[Rs_geometry], &x, &y, &w, &h); 721 flags = XParseGeometry (rs[Rs_geometry], &x, &y, &w, &h);
720 722
721 if (flags & WidthValue) 723 if (flags & WidthValue)
722 { 724 {
723 ncol = clamp (w, 0, MAX_POSITIVE_INT16); 725 ncol = clamp (w, 0, std::numeric_limits<int16_t>::max ());
724 szHint.flags |= USSize; 726 szHint.flags |= USSize;
725 } 727 }
726 728
727 if (flags & HeightValue) 729 if (flags & HeightValue)
728 { 730 {
729 nrow = clamp (h, 0, MAX_POSITIVE_INT16); 731 nrow = clamp (h, 0, std::numeric_limits<int16_t>::max ());
730 szHint.flags |= USSize; 732 szHint.flags |= USSize;
731 } 733 }
732 734
733 if (flags & XValue) 735 if (flags & XValue)
734 { 736 {
889 prop.height += lineSpace; 891 prop.height += lineSpace;
890 fs->set_prop (prop); 892 fs->set_prop (prop);
891 893
892 fwidth = prop.width; 894 fwidth = prop.width;
893 fheight = prop.height; 895 fheight = prop.height;
894 fweight = prop.weight;
895 fslant = prop.slant;
896 fbase = (*fs)[1]->ascent; 896 fbase = (*fs)[1]->ascent;
897 897
898 for (int style = 1; style < 4; style++) 898 for (int style = 1; style < 4; style++)
899 { 899 {
900#if ENABLE_STYLES 900#if ENABLE_STYLES

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines