/[rdesktop]/sourceforge.net/trunk/rdesktop/xwin.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /sourceforge.net/trunk/rdesktop/xwin.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 42 by matthewc, Sun Apr 7 09:42:54 2002 UTC revision 44 by matthewc, Wed Apr 10 14:07:56 2002 UTC
# Line 870  ui_draw_text(uint8 font, uint8 flags, in Line 870  ui_draw_text(uint8 font, uint8 flags, in
870               int bgcolour, int fgcolour, uint8 *text, uint8 length)               int bgcolour, int fgcolour, uint8 *text, uint8 length)
871  {  {
872          FONTGLYPH *glyph;          FONTGLYPH *glyph;
873          int i, offset;          short offset;
874            int i;
875    
876          SET_FOREGROUND(bgcolour);          SET_FOREGROUND(bgcolour);
877    
# Line 892  ui_draw_text(uint8 font, uint8 flags, in Line 893  ui_draw_text(uint8 font, uint8 flags, in
893                  {                  {
894                          offset = text[++i];                          offset = text[++i];
895                          if (offset & 0x80)                          if (offset & 0x80)
896                                  offset = ((offset & 0x7f) << 8) | text[++i];                          {
897                                    if (offset == 0x80)
898                                    {
899                                            /* next two bytes, little-endian */
900                                            offset = text[++i];
901                                            offset |= text[++i] << 8;
902                                    }
903                                    else
904                                    {
905                                            offset = (offset & 0x7f) << 8;
906                                            offset |= text[++i];
907                                    }
908                            }
909    
910                          if (flags & TEXT2_VERTICAL)                          if (flags & TEXT2_VERTICAL)
911                                  y += offset;                                  y += offset;

Legend:
Removed from v.42  
changed lines
  Added in v.44

  ViewVC Help
Powered by ViewVC 1.1.26