mirror of
https://github.com/QB64-Phoenix-Edition/QB64pe.git
synced 2024-07-04 04:50:22 +00:00
`sub__mousemove` is trying to use `x_scale`, `y_scale`, `x_offset`, and `y_offset` to calculate where the mouse should be in the event the window coordinates are different from the screen coordinates. Unfortunately, all four of those variables are actually never set in the program. The real scale values and offsets (in the event of letterboxing) are stored in `environment_2d__` values. This change switches `sub__mousemove` to simply use the correct values when calculating the mouse position. Because `x_scale` and `y_scale` are not used anywhere else I just removed them completely. I wanted to remove `x_offset` and `y_offset` as well but there are a few spots that make use of it. It must be a bug, since they are never assigned values other than zero, but I'm not sure if the correct fix for the other locations is to use the `environment_2d__` value or do nothing, so I'm leaving them for now and we can address them later. |
||
---|---|---|
.. | ||
libqb | ||
parts | ||
.gitignore | ||
common.h | ||
libqb.cpp | ||
libqb.h | ||
libqb.mm | ||
msbin.c | ||
mtri1.cpp | ||
mtri1s.cpp | ||
mtri1t.cpp | ||
mtri1ts.cpp | ||
mtri2.cpp | ||
mtri2s.cpp | ||
mtri2t.cpp | ||
mtri2ts.cpp | ||
mtri3.cpp | ||
mtri3s.cpp | ||
mtri3t.cpp | ||
mtri3ts.cpp | ||
mtri4.cpp | ||
mtri4s.cpp | ||
mtri4t.cpp | ||
mtri4ts.cpp | ||
myip.cpp | ||
os.h | ||
purge_all_precompiled_content.bat | ||
purge_all_precompiled_content.command | ||
purge_all_precompiled_content.sh | ||
qbx.cpp | ||
time64.c | ||
time64.h |