Changeset c7627d4 in git


Ignore:
Timestamp:
27/01/14 05:32:55 (6 years ago)
Author:
Olly Betts <olly@…>
Branches:
line_contents, master, stereo, travis-osx
Children:
cba8bf34
Parents:
0f86024
Message:

src/glbitmapfont.cc: Fix writing of Unicode characters above
BITMAPFONT_MAX_CHAR (which is 256 currently).

Files:
2 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r0f86024 rc7627d4  
     1Mon Jan 27 05:32:12 GMT 2014  Olly Betts <olly@survex.com>
     2
     3        * src/glbitmapfont.cc: Fix writing of Unicode characters above
     4          BITMAPFONT_MAX_CHAR (which is 256 currently).
     5
    16Mon Jan 27 00:44:30 GMT 2014  Olly Betts <olly@survex.com>
    27
  • src/glbitmapfont.cc

    r0f86024 rc7627d4  
    44//  Draw text using glBitmap.
    55//
    6 //  Copyright (C) 2011,2012,2013 Olly Betts
     6//  Copyright (C) 2011,2012,2013,2014 Olly Betts
    77//
    88//  This program is free software; you can redistribute it and/or modify
     
    196196        s += n;
    197197        len -= n;
    198         while (len && int(s[n]) >= BITMAPFONT_MAX_CHAR) {
    199             write_glyph(s[n]);
     198        while (len && int(*s) >= BITMAPFONT_MAX_CHAR) {
     199            write_glyph(*s);
    200200            ++s;
    201201            --len;
Note: See TracChangeset for help on using the changeset viewer.