QB64.org Forum
Active Forums => Programs => Topic started by: STxAxTIC on August 04, 2019, 06:51:34 am
-
The fact that nobody caught this yet makes me think I'm the only one using _MOUSEMOVEMENT... Or maybe its my hardware?
... does nothing with X-movements, and only gives (positive) 1 for Y-movements. This worked before 1.3.
-
Hi! You don't even know how nice to see you here, librarian! I've got a job for you! You like that, don't you?
First. To your query. This problem is known and FellippeHeitor is upset about me because I have no patience. I didn't mean it, but I insulted him. I did not want that. That is, just the day that the new QB 1.3 was released and the QB64.ORG homepage was updated, I just pointed out this error. Fellippe say work is underway in this.
Second. As a library manager, I ask you to update the tool thread. I'm sure there definitely, there be add the Steve Library DIRENTRY.H + sample program, Dithering, which is somewhere in the forum, and other things that have shown up. There is only one thing so far and that is really not enough. Thank you for understanding.
-
As a library manager, I ask you to update the tool thread. There is only one thing so far and that is really not enough.
Hmm. Methinks that Petr wants you to be DYNxAxMIC rather than STxAxTIC!
-
Hmm, Qwerkey, maybe...? :)
Let's make it easier for a librarian, write your tips on what to add to the tool library! I suggest, as I wrote, Steve the Direntry.H library for browsing files and folders under Linux and under Windows. Then Ashish program for capturing the OpenGL surface onto a software screen, Dithering (converting an image from 32 bits to 256/16/4/2 colors) and maybe even my program for loading icons from ICO files. I'll add links here.
For OpenGL layer to Software layer program (just add _GLRENDER _BEHIND to row 13), author Ashish: https://www.qb64.org/forum/index.php?topic=1492.msg106974#msg106974
For Browsing Directories/Files under Linux and Windows + DiskDrives under Windows, author SMcNeill: https://www.qb64.org/forum/index.php?topic=321.msg2137#msg2137
For using ICO (all ICO images from ICO file), if you insert -1 as image number, then program show all icons in file for you, author Petr: https://www.qb64.org/forum/index.php?topic=688.msg5661#msg5661
For using Dithering use this source code. Athor for both function is Ashish Kushwaha:
SCREEN FloydSteinbergDithering&
(s
, 1)
FUNCTION grayscale&
(img&
) ' This is not my source, its coded By Ashish
FUNCTION FloydSteinbergDithering&
(img&
, factor
AS INTEGER) 'This is not my source, its coded By Ashish
_DEST FloydSteinbergDithering&
newR
= _ROUND(factor
* (oldR
/ 255)) * (255 / factor
) newG
= _ROUND(factor
* (oldG
/ 255)) * (255 / factor
) newB
= _ROUND(factor
* (oldB
/ 255)) * (255 / factor
)
errR = oldR - newR
errG = oldG - newG
errB = oldB - newB
r
= _RED(col2~&
) + errR
* 7 / 16 g
= _GREEN(col2~&
) + errG
* 7 / 16 b
= _BLUE(col2~&
) + errB
* 7 / 16
col2~&
= POINT(x
- 1, y
+ 1) r
= _RED(col2~&
) + errR
* 3 / 16 g
= _GREEN(col2~&
) + errG
* 3 / 16 b
= _BLUE(col2~&
) + errB
* 3 / 16
r
= _RED(col2~&
) + errR
* 5 / 16 g
= _GREEN(col2~&
) + errG
* 5 / 16 b
= _BLUE(col2~&
) + errB
* 5 / 16
col2~&
= POINT(x
+ 1, y
+ 1) r
= _RED(col2~&
) + errR
* 1 / 16 g
= _GREEN(col2~&
) + errG
* 1 / 16 b
= _BLUE(col2~&
) + errB
* 1 / 16
and then, Librarian, please see to new BPlus thread: https://www.qb64.org/forum/index.php?topic=1511.0
Thank you.
-
Hello, long time no see.
You guys raise valid points about library/toolbox stuff. I'll start getting on it in some fashion. Remind me in 6 months if I forget. :-)
As for the mouse bug... welp... it needs attention.
-
This issue is old, older than v1.3
-
Confused-shit say: It is easier for a chronic opioid user to have a _BOWELMOVEMENT than for a cute 64'er to make use of _MOUSEMOVEMENTX.
I just use _MOUSEX and _MOUSEY and make my own functions to detect if the mouse cursor was moved.
This did function, as advertised in the two Wiki examples, in version 1.1, but failed in both version 1.2 and 1.3.
Hi Bill, nice to see finally remembered your QB64 Forum password: petecanbitemy....
Pete