Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

EIntOverflow with 32 bit binary #26

Closed
lainz opened this issue Jul 14, 2018 · 2 comments
Closed

EIntOverflow with 32 bit binary #26

lainz opened this issue Jul 14, 2018 · 2 comments

Comments

@lainz
Copy link
Member

lainz commented Jul 14, 2018

lazpaint

        {$hints off}
        ec.red := (ec.red*($FFFF-gray)+level*gray) shr 16;
        ec.green := (ec.green*($FFFF-gray)+level*gray) shr 16;
        ec.blue := (ec.blue*($FFFF-gray)+level*gray) shr 16;
        {$hints on} 

Hi, this happens when I run LazPaint 'Debug' 32 bit, compiled with Lazarus Trunk and FPC Trunk. When compiled in 'Debug' 64 bit it works fine.

I don't know if is still a good idea to mantain 32 bit Windows, since only really old PC still uses 32 bit.

@lainz
Copy link
Member Author

lainz commented Jul 14, 2018

Some statistics (mainly gamers, but I think graphic editing should be the same)
https://store.steampowered.com/hwsurvey/

Also I have a Windows 10 VM with only 1.5 GB of RAM, so the myth that it requires at least 4 gb is not true. Of course is recommended, but not neccessary.

@lainz lainz closed this as completed Jan 15, 2019
@circular17
Copy link
Collaborator

Oops it seems I missed this issue. I fixed it with on dev branch:

        {$hints off}
        ec.red := (ec.red*(not gray)+level*gray) shr 16;
        ec.green := (ec.green*(not gray)+level*gray) shr 16;
        ec.blue := (ec.blue*(not gray)+level*gray) shr 16;
        {$hints on}

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants