Gleb Mazovetskiy
|
17b5011916
|
DiabloUI: Move art and text code out of diablo.cpp
|
7 years ago |
Gleb Mazovetskiy
|
7f61128d32
|
Fix more compilation warnings
```
SourceX/storm/storm.cpp:27:10: note: ‘snprintf’ output between 11 and 270 bytes into a destination of size 260
snprintf(file_path, DVL_MAX_PATH, "%sdiablo.ini", path);
```
SDL1 warnings:
```
devilutionX/SourceX/dx.cpp:199:24: warning: narrowing conversion of ‘(int)dwX’ from ‘int’ to ‘Sint16’ {aka ‘short int’} inside { } [-Wnarrowing]
SDL_Rect dst_rect = { (int)dwX, (int)dwY, w, h };
SourceS/sdl2_to_1_2_backports.h:616:18: warning: comparison is always false due to limited range of data type [-Wtype-limits]
if (final_dst.w < 0)
SourceS/sdl2_to_1_2_backports.h:777:24: warning: comparison of integer expressions of different signedness: ‘const int’ and ‘long unsigned int’ [-Wsign-compare]
if ((rc > 0) && (rc < sizeof(path))) {
~~~^~~~~~~~~~~~~~
SourceX/storm/storm.cpp:479:16: warning: comparison of integer expressions of different signedness: ‘int’ and ‘long unsigned int’ [-Wsign-compare]
if (out_len <= item->len) {
SourceX/storm/storm.cpp:716:60: warning: narrowing conversion of ‘((640 - scaledW) / 2)’ from ‘int’ to ‘Sint16’ {aka ‘short int’} inside { } [-Wnarrowing]
SDL_Rect pal_surface_offset = { (SCREEN_WIDTH - scaledW) / 2, (SCREEN_HEIGHT - scaledH) / 2, scaledW, scaledH };
DiabloUI/credits.cpp:525:30: warning: narrowing conversion of ‘- y’ from ‘int’ to ‘Sint16’ {aka ‘short int’} inside { } [-Wnarrowing]
SDL_Rect src_rect = { 0, -y, text_surface->w, 251 };
```
|
7 years ago |
Anders Jenbo
|
18532e7c9b
|
Format SourceX and SourceS
Fixes #262
|
7 years ago |
Gleb Mazovetskiy
|
cf0f867ca0
|
DrawArt via SDL
|
7 years ago |
Anders Jenbo
|
5cadee74c2
|
Fix a few compiler warnings
|
7 years ago |
Bao Chi Tran Nguyen
|
c6d5dc48ff
|
Implemented text shadow at the credits.
|
7 years ago |
Manuel K
|
32b0e99e90
|
Use SCREEN_Y (dX part)
|
7 years ago |
Anders Jenbo
|
0f8545d3c4
|
Clean up SDL error logging
|
7 years ago |
Anders Jenbo
|
b791b1093c
|
Clean up DDraw implementation
|
7 years ago |
Anders Jenbo
|
aa017838e0
|
Fix some warning in the UI
|
7 years ago |
Xadhoom
|
f00e427ed2
|
Remove pch.h
|
7 years ago |
Xadhoom
|
c1ba436e69
|
miniwin_misc.h macro-clean
|
7 years ago |
Xadhoom
|
30fbfa36a1
|
Progress with miniwin macros
|
7 years ago |
Xadhoom
|
5283a9ffd1
|
Put everything into namespace dvl
|
7 years ago |
Xadhoom
|
4d557709e0
|
Clean headers for network code
|
7 years ago |
Xadhoom
|
af47577446
|
Begin restructuring headers
|
7 years ago |
Anders Jenbo
|
89c2b533cb
|
Implement ui layout framework
|
7 years ago |
Anders Jenbo
|
a58e3af89a
|
Refactor menu navigation
This also implements fully accurate list navigation
|
7 years ago |
Anders Jenbo
|
d86ceb14cb
|
Refactor ui code
|
7 years ago |
Anders Jenbo
|
dd023c1072
|
Implement progressbar
|
7 years ago |
Anders Jenbo
|
199fd17e2e
|
Remove mouse from credit page
|
7 years ago |
Anders Jenbo
|
755612fc13
|
Fix unresponsive menu and match transitions to the original
|
7 years ago |
Anders Jenbo
|
c75d50a82c
|
Split up menu code
|
7 years ago |
Anders Jenbo
|
cead5831fd
|
Implement remaning keys
|
7 years ago |
Anders Jenbo
|
bd1949a8e6
|
Remove redundant code
|
7 years ago |
Anders Jenbo
|
6ffdbe66ed
|
Fix DrawMouse on scaled view and enabled resizing
|
7 years ago |
Anders Jenbo
|
12d35a3dea
|
Enable v-sync
|
7 years ago |
Anders Jenbo
|
e45df94905
|
Only init once
This fixes music playing to early
|
7 years ago |
Anders Jenbo
|
7f9b67c210
|
Remove redundant code
|
7 years ago |
Anders Jenbo
|
c643d65177
|
Font is nearly perfect now
|
7 years ago |
Anders Jenbo
|
ed24d7bbf5
|
Adjust font hinting
|
7 years ago |
Anders Jenbo
|
5fed0b1316
|
Match the credit menu look
This also adds transitions to menus
|
7 years ago |
Anders Jenbo
|
490b5d8ab4
|
Simplify FPS calculation
|
7 years ago |
Anders Jenbo
|
03641f4cce
|
Avoid screen overdraw
This fixes crashes from moving the mouse outside of the screen.
|
7 years ago |
Anders Jenbo
|
75bf0419b1
|
Remove unused code
|
7 years ago |
Anders Jenbo
|
aeedc755b5
|
Implement basic MP menu
|
7 years ago |
Xadhoom
|
0332d81091
|
Unify including ../types.h everywhere; more fixes
|
7 years ago |
Xadhoom
|
005e4f911a
|
Fixes and remove unused stuff
|
7 years ago |
Anders Jenbo
|
1e4e826a36
|
Remove delta to devilution
|
7 years ago |
Anders Jenbo
|
5b87336b9a
|
Fix flickering menu
|
7 years ago |
Anders Jenbo
|
667fa631b6
|
Enable spinner
|
7 years ago |
Anders Jenbo
|
1cf2a057b0
|
Implement single player menu
|
7 years ago |
Xadhoom
|
3dd6cf1671
|
First try, merge compiles, but immediate crash
|
7 years ago |
Anders Jenbo
|
937afed84b
|
Implement splash screen
|
7 years ago |
Anders Jenbo
|
3d392fc0f8
|
Implement splash screen
|
7 years ago |
Anders Jenbo
|
475ad55182
|
Move all menu code to stub files
Lets us much more easily merge upstream
|
7 years ago |
Anders Jenbo
|
238a6d6c2a
|
Move all menu code to stub files
Lets us much more easily merge upstream
|
7 years ago |
Anders Jenbo
|
d4d5683d5b
|
Fix compiling on 64bit (only menu works)
|
7 years ago |
Anders Jenbo
|
1528845957
|
Implement hero select menu
|
7 years ago |
Anders Jenbo
|
946cd47a24
|
Finish keyboard and mouse navigation for main menu
|
7 years ago |