I tested a scroll panel (https://github.com/defun-games/claylib/blame/main/examples/gui/scroll-panel.lisp) example, and found one error.
The scroll-panel example don't work on SBCL 2.3.5 (Manjaro). Then I call the MAIN function, I had an error:
The value of SCROLL is #<CLAYLIB::VECTOR2 :X 99.0 :Y -20.0 :C-PTR #.(SB-SYS:INT-SAP #X7F3774AAF300) :CHILDREN #<HASH-TABLE :TEST EQL :COUNT 0 {1003BC14A3}> >, which is not of type SB-SYS:SYSTEM-AREA-POINTER.
I find, what problem in this line:
https://github.com/defun-games/claylib/blob/3eb86bc5f6b88570e053e0eefed66384d2c28365/examples/gui/scroll-panel.lisp#L92
(gui-scroll-panel panel-rec "scroll panel" panel-content-rec panel-scroll :rec view)
The PANEL-SCROLL is a VECTOR2, but not SB-SYS:SYSTEM-AREA-POINTER.
What I can to do?
P.S. The hash table definition is not beautiful. I suggest using an alist-hash-table.
I tested a scroll panel (https://github.com/defun-games/claylib/blame/main/examples/gui/scroll-panel.lisp) example, and found one error.
The scroll-panel example don't work on SBCL 2.3.5 (Manjaro). Then I call the MAIN function, I had an error:
The value of SCROLL is #<CLAYLIB::VECTOR2 :X 99.0 :Y -20.0 :C-PTR #.(SB-SYS:INT-SAP #X7F3774AAF300) :CHILDREN #<HASH-TABLE :TEST EQL :COUNT 0 {1003BC14A3}> >, which is not of type SB-SYS:SYSTEM-AREA-POINTER.I find, what problem in this line:
https://github.com/defun-games/claylib/blob/3eb86bc5f6b88570e053e0eefed66384d2c28365/examples/gui/scroll-panel.lisp#L92
(gui-scroll-panel panel-rec "scroll panel" panel-content-rec panel-scroll :rec view)The PANEL-SCROLL is a VECTOR2, but not SB-SYS:SYSTEM-AREA-POINTER.
What I can to do?
P.S. The hash table definition is not beautiful. I suggest using an alist-hash-table.