~masmullin/scintilla-cocoa/updates

« back to all changes in this revision

Viewing changes to win32/PlatWin.cxx

  • Committer: Michael Mullin
  • Date: 2011-05-10 01:10:01 UTC
  • Revision ID: masmullin@gmail.com-20110510011001-oqg4et6521j2gidj
synced to CS 3648

Show diffs side-by-side

added added

removed removed

Lines of Context:
11
11
#include <stdarg.h>
12
12
#include <stdio.h>
13
13
#include <time.h>
 
14
#include <limits.h>
14
15
 
15
16
#undef _WIN32_WINNT
16
17
#define _WIN32_WINNT  0x0500
441
442
        bitmap(0), bitmapOld(0),
442
443
        paletteOld(0) {
443
444
        // Windows 9x has only a 16 bit coordinate system so break after 30000 pixels
444
 
        maxWidthMeasure = IsNT() ? 1000000 : 30000;
 
445
        maxWidthMeasure = IsNT() ? INT_MAX : 30000;
445
446
        // There appears to be a 16 bit string length limit in GDI on NT and a limit of
446
447
        // 8192 characters on Windows 95.
447
448
        maxLenText = IsNT() ? 65535 : 8192;