Changeset 244 for oup/current/Global


Ignore:
Timestamp:
Aug 17, 2007, 11:09:51 PM (17 years ago)
Author:
alloc
Message:
 
File:
1 edited

Legend:

Unmodified
Added
Removed
  • oup/current/Global/OniImgClass.pas

    r204 r244  
    414414    images[i] := TOniImage.Create;
    415415    images[i].LoadFromTXMP(ConnectionID, link);
    416     SetLength(FImages, 1);
    417     NewImage(width, height, ifA1R5G5B5, FImages[0]);
    418   end;
     416  end;
     417  SetLength(FImages, 1);
     418  NewImage(width, height, images[0].Format {ifA1R5G5B5}, FImages[0]);
    419419  for y := 0 to rows - 1 do
    420420  begin
     
    426426      for i := 0 to x do
    427427        if i < x then
    428           x_start := x_start + images[i].Image[0].Width;
     428          x_start := x_start + images[i].Image[1].Width;
    429429      for i := 0 to y do
    430430        if i < y then
    431           y_start := y_start + images[i].Image[0].Height;
    432       CopyRect(images[imgid].Image[0], 0, 0, images[imgid].Image[0].Width,
    433           images[imgid].Image[0].Height, FImages[0], x_start, y_start);
     431          y_start := y_start + images[i].Image[1].Height;
     432      CopyRect(images[imgid].Image[1], 0, 0, images[imgid].Image[1].Width,
     433          images[imgid].Image[1].Height, FImages[0], x_start, y_start);
    434434    end;
    435435  end;
Note: See TracChangeset for help on using the changeset viewer.