1
1
Fork 0
mirror of https://github.com/QB64-Phoenix-Edition/QB64pe.git synced 2024-07-04 04:50:22 +00:00
QB64-PE/internal/c
Matthew Kilgore 84f1165776 Fix _MOUSEMOVE when window is resized
`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.
2022-09-10 15:31:22 -04:00
..
libqb Revert changes to miniaudio.h, move changes elsewhere 2022-09-08 23:59:19 -04:00
parts Fix #169 & #170 2022-09-10 04:08:31 +05:30
.gitignore setup_win.bat: create internal/c/c_compiler 2022-04-28 17:15:35 -04:00
common.h Fix usage of mem_block type in _MEMSOUND 2022-09-04 05:16:41 +05:30
libqb.cpp Fix _MOUSEMOVE when window is resized 2022-09-10 15:31:22 -04:00
libqb.h Format other various source files 2022-05-06 13:20:30 -04:00
libqb.mm (Automated push) Update internal/source/* from qb64.bas 2015-08-02 05:12:44 -07:00
msbin.c Format other various source files 2022-05-06 13:20:30 -04:00
mtri1.cpp Run clang-format on ./internal/c/*cpp files 2022-05-06 13:20:30 -04:00
mtri1s.cpp Run clang-format on ./internal/c/*cpp files 2022-05-06 13:20:30 -04:00
mtri1t.cpp Run clang-format on ./internal/c/*cpp files 2022-05-06 13:20:30 -04:00
mtri1ts.cpp Run clang-format on ./internal/c/*cpp files 2022-05-06 13:20:30 -04:00
mtri2.cpp Run clang-format on ./internal/c/*cpp files 2022-05-06 13:20:30 -04:00
mtri2s.cpp Run clang-format on ./internal/c/*cpp files 2022-05-06 13:20:30 -04:00
mtri2t.cpp Run clang-format on ./internal/c/*cpp files 2022-05-06 13:20:30 -04:00
mtri2ts.cpp Run clang-format on ./internal/c/*cpp files 2022-05-06 13:20:30 -04:00
mtri3.cpp Run clang-format on ./internal/c/*cpp files 2022-05-06 13:20:30 -04:00
mtri3s.cpp Run clang-format on ./internal/c/*cpp files 2022-05-06 13:20:30 -04:00
mtri3t.cpp Run clang-format on ./internal/c/*cpp files 2022-05-06 13:20:30 -04:00
mtri3ts.cpp Run clang-format on ./internal/c/*cpp files 2022-05-06 13:20:30 -04:00
mtri4.cpp Run clang-format on ./internal/c/*cpp files 2022-05-06 13:20:30 -04:00
mtri4s.cpp Run clang-format on ./internal/c/*cpp files 2022-05-06 13:20:30 -04:00
mtri4t.cpp Run clang-format on ./internal/c/*cpp files 2022-05-06 13:20:30 -04:00
mtri4ts.cpp Run clang-format on ./internal/c/*cpp files 2022-05-06 13:20:30 -04:00
myip.cpp Step 10: Update remaining stuff 2022-08-12 02:54:12 +02:00
os.h Add initial MIDI language support 2022-09-04 23:35:14 -04:00
purge_all_precompiled_content.bat Change purge scripts to use make clean 2022-05-19 09:17:13 -04:00
purge_all_precompiled_content.command Change purge scripts to use make clean 2022-05-19 09:17:13 -04:00
purge_all_precompiled_content.sh Change purge scripts to use make clean 2022-05-19 09:17:13 -04:00
qbx.cpp Remove all _SHR & _SHL changes 2022-09-01 16:15:42 +05:30
time64.c Format other various source files 2022-05-06 13:20:30 -04:00
time64.h Format other various source files 2022-05-06 13:20:30 -04:00