Code Monkey home page Code Monkey logo

Comments (6)

Alexey-T avatar Alexey-T commented on May 29, 2024

hm.. I see 150cols, demo_load app. Ok.. Win7

from atsynedit.

Alexey-T avatar Alexey-T commented on May 29, 2024

How to see it here?

from atsynedit.

User4martin avatar User4martin commented on May 29, 2024

I build with different set of options -Criot with/without... Always happens.
fpc 2.6.4
Lazarus 1.5 trunk, 48628

I use the text, that is loaded initially (default demo text). It happens at the same pixel width, even with a bigger font. So it is not related to the amount of text columns.

It happens when the bitmap is resized.

from atsynedit.

Alexey-T avatar Alexey-T commented on May 29, 2024

better this??

procedure TATSynEdit.DoOnResize;
var
  SizeX, SizeY: integer;
begin
  inherited;

  if Assigned(FBitmap) then
  begin
    SizeX:= ((Width div cResizeBitmapStep)+1)*cResizeBitmapStep;
    SizeY:= ((Height div cResizeBitmapStep)+1)*cResizeBitmapStep;
    if (SizeX>FBitmap.Width) or (SizeY>FBitmap.Height) then
      FBitmap.SetSize(SizeX, SizeY);
  end;

  Invalidate;
end;

from atsynedit.

User4martin avatar User4martin commented on May 29, 2024

No, but this works:

if Assigned(FBitmap) then
begin
SizeX:= ((Width div cResizeBitmapStep)+1)_cResizeBitmapStep;
SizeY:= ((Height div cResizeBitmapStep)+1)_cResizeBitmapStep;
if (SizeX>FBitmap.Width) or (SizeY>FBitmap.Height) then begin
FBitmap.SetSize(SizeX, SizeY);
FBitmap.FreeImage; // <<<<<<<<<<<<<<<<<<<
end;
end;

I am not sure, if this should be required, or if it is a bug in TBitMap

from atsynedit.

Alexey-T avatar Alexey-T commented on May 29, 2024

weird. will do.

from atsynedit.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.