Yuri Pourre
1b1c399a9b
Update all the files that do not have CRLF as line break
3 months ago
Gleb Mazovetskiy
fc1d447918
SDL3: Convert events to render coordinates
...
Fixes mouse clicks with hardware cursor + integer scaling.
5 months ago
Gleb Mazovetskiy
8c1a847f41
Remove utils/stdcompat/string_view.hpp
3 years ago
Gleb Mazovetskiy
5bf0b8bc96
Add more missing <cstdint> includes
...
https://github.com/diasurgical/devilutionX/pull/6095 only added includes
for `uint32_t`, this PR also adds the includes for the remaining
integral types.
3 years ago
Gleb Mazovetskiy
4fa3732526
Add missing <cstdint> includes
...
Done with the following script:
```ruby
Dir["Source/**/*.{h,c,cc,cpp,hpp}"].each do |path|
v = File.read(path)
next if !v.include?("uint32_t") || v.include?("cstdint")
lines = v.lines
line_num = if lines[2].start_with?(" *")
lines.index { |l| l.start_with?(" */") } + 3
else
3
end
lines.insert(line_num, "#include <cstdint>\n")
File.write(path, lines.join(""))
end
```
then fixed-up manually
3 years ago
Gleb Mazovetskiy
4cf0053ece
Set underlying type for all the enums
...
Reduces rg99 binary size by 3 KiB.
4 years ago
ephphatha
42033f82f4
Use enum instead of int as bool for docking mode
4 years ago
ephphatha
7f15aa730d
Move definition of ghMainWnd to utils/display.cpp
...
This variable is controlled/set by the code in that file, this also lets other files have more specific/relevant includes instead of the monolith that is diablo.h
4 years ago
staphen
56af849632
Use romfs on Switch for devilutionx.mpq
4 years ago
ephphatha
f9ce2108f6
Use string_view for switch keyboard input
4 years ago
Gleb Mazovetskiy
cacf55bb34
CMake: Split out platform libraries
4 years ago
Gleb Mazovetskiy
d0ed505765
Move platforms `asio` includes to Source
4 years ago
Gleb Mazovetskiy
7e1fea6f76
clang-format all files in {Source,test}/
...
Also includes a few manual tweaks to comments and newlines for better results.
Co-authored-by: Anders Jenbo <anders@jenbo.dk>
4 years ago
Anders Jenbo
799f1763af
Performce UTF8 aware limited string copies
4 years ago
staphen
1d50db0246
Nintendo Switch: Remove link to rdimon library to fix file truncation
5 years ago
Anders Jenbo
a7c7fa0030
Fully apply clang-tidy/format to all files
5 years ago
staphen
8fbe5efd9e
Switch custom RNG for libsodium
5 years ago
staphen
c5fc37eca2
Stub missing functions for Switch
5 years ago
Jmgr
c33182d6de
Modernize deprecated headers
5 years ago
Anders Jenbo
8c821e98d3
🚚 Restructure files
5 years ago