Resize breaking - Printable Version +- QB64 Phoenix Edition (https://staging.qb64phoenix.com) +-- Forum: QB64 Rising (https://staging.qb64phoenix.com/forumdisplay.php?fid=1) +--- Forum: Code and Stuff (https://staging.qb64phoenix.com/forumdisplay.php?fid=3) +---- Forum: Help Me! (https://staging.qb64phoenix.com/forumdisplay.php?fid=10) +---- Thread: Resize breaking (/showthread.php?tid=710) Pages:
1
2
|
RE: Resize breaking - SMcNeill - 08-01-2022 (08-01-2022, 10:14 PM)Kernelpanic Wrote: Interesting. I can't say anything about what the admin wrote because I don't have the knowledge. It's just a little integer math, as easily demonstrated with the following: Code: (Select All) For i = 0 To 20 The "limit" above is always going to be a multiple of 4, rounded down. Another simple way to get the same value would be: limit = i - i mod 4 As shown below: Code: (Select All) For i = 0 To 20 It's just a method to keep the screensize suitable to match our given fontsize, without stray pixels left over to deal with. RE: Resize breaking - TempodiBasic - 08-01-2022 HI thanks to Administator and to Steve for clearing the \ )* math expression... the mystery stands with SCREEN _NEWIMAGE(FW,FH,32) instruction that seems not working properly. |