Commit graph

69 commits

Author SHA1 Message Date
Nipun Garg
a28eb3e60e HDB: Fix space formatting 2019-09-03 17:16:59 +02:00
Nipun Garg
87f8ed55b1 HDB: Fix character blitting 2019-09-03 17:16:58 +02:00
Nipun Garg
b7c5c2e815 HDB: Fix type and reading errors 2019-09-03 17:16:57 +02:00
Nipun Garg
d973d258dd HDB: Add debug output for font data 2019-09-03 17:16:57 +02:00
Nipun Garg
a9314535c8 HDB: Remove 'Add Animating Info' stub 2019-09-03 17:16:57 +02:00
Nipun Garg
fbc5dffc10 HDB: Init Cursor, Text Edges and load Game Font 2019-09-03 17:16:57 +02:00
Nipun Garg
6d28554d2a HDB: Add drawText() 2019-09-03 17:16:57 +02:00
Nipun Garg
a427871168 HDB: Add loadFont() 2019-09-03 17:16:56 +02:00
Nipun Garg
ae872f3569 HDB: Add getDimensions() to calculate pixel width 2019-09-03 17:16:56 +02:00
Nipun Garg
94747f0f76 HDB: Add getter-setter for Text Edges 2019-09-03 17:16:56 +02:00
Nipun Garg
e7ddd0b527 HDB: Add getter-setter for Kerning and Leading 2019-09-03 17:16:56 +02:00
Nipun Garg
954d1c649c HDB: Add getter-setter for the cursor 2019-09-03 17:16:56 +02:00
Nipun Garg
a990792f9a HDB: Add the loadPic() helper 2019-09-03 17:16:56 +02:00
Nipun Garg
776b257e52 HDB: Add cacheTileSequence() 2019-09-03 17:16:55 +02:00
Nipun Garg
94d443bfa8 HDB: Add animateTile() 2019-09-03 17:16:54 +02:00
Nipun Garg
1cae287783 HDB: Modify getTileIndex to accept NULL input 2019-09-03 17:16:53 +02:00
Nipun Garg
caff981b2f HDB: Add selectGfx() 2019-09-03 17:16:53 +02:00
Nipun Garg
ec5fea4e97 HDB: Split getGfx() into getTileGfx and getPicGfx 2019-09-03 17:16:53 +02:00
Nipun Garg
949f27872a HDB: Add constructors to Tile and Picture 2019-09-03 17:16:52 +02:00
Nipun Garg
f6fe88bab9 HDB: Add getGfx to get and cache Gfx files 2019-09-03 17:16:51 +02:00
Nipun Garg
898d32e1de HDB: Add _gfxCache to store cached graphics 2019-09-03 17:16:51 +02:00
Eugene Sandulenko
b449bd6fe2 HDB: Hid some annoying STUB warnings 2019-09-03 17:16:51 +02:00
Eugene Sandulenko
f5a695191b HDB: Clear screen before drawing transparent stars 2019-09-03 17:16:49 +02:00
Eugene Sandulenko
b23906e11e HDB: Clip blitting properly 2019-09-03 17:16:49 +02:00
Nipun Garg
2c2df56fdf HDB: Add updateVideo() 2019-09-03 17:16:48 +02:00
Nipun Garg
2a3911976e HDB: Set _fadeInfo.active = false in updateFade 2019-09-03 17:16:48 +02:00
Nipun Garg
337f057fd4 HDB: Fix type cast formatting errors 2019-09-03 17:16:48 +02:00
Nipun Garg
191079fc1e HDB: Add stubbed-out DrawMan::updateFade() 2019-09-03 17:16:48 +02:00
Nipun Garg
604e7e5f63 HDB: Add DrawMan::setFade() 2019-09-03 17:16:48 +02:00
Eugene Sandulenko
38f11eef39 HDB: Do not blit whole screen 2019-09-03 17:16:47 +02:00
Eugene Sandulenko
166239f78a HDB: Optimise blitting code 2019-09-03 17:16:46 +02:00
Nipun Garg
7df02e4116 HDB: Complete draw3DStarsLeft 2019-09-03 17:16:46 +02:00
Nipun Garg
147a4e84e7 HDB: Add Tile::drawMasked for masked Blitting 2019-09-03 17:16:46 +02:00
Nipun Garg
c946e1be1a HDB: Implement workaround for edge blitting
copyRectToSurface expects that graphics won't
touch the edge of the screen. Hence, when they do
touch the edge, the draw call is ignored.
2019-09-03 17:16:46 +02:00
Nipun Garg
e267210ec8 HDB: Clip before passing to copyRectToSurface 2019-09-03 17:16:46 +02:00
Nipun Garg
8bc38a67ee HDB: Make _globalSurface Back Buffer
Modify drawMan to use _globalSurface as a copy of
the whole screen
2019-09-03 17:16:46 +02:00
Nipun Garg
5f04136452 HDB: Complete draw3DStars 2019-09-03 17:16:46 +02:00
Nipun Garg
9df5622d1f HDB: Add Picture::drawMasked for masked blitting 2019-09-03 17:16:46 +02:00
Eugene Sandulenko
ba9d1c6f0a HDB: Lessen noise on the empty tiles 2019-09-03 17:16:46 +02:00
Nipun Garg
8f8d6782b8 HDB: Fix isSky to return correct skyIndex 2019-09-03 17:16:46 +02:00
Nipun Garg
00022ef0a7 HDB: Change getTileIndex using Common::matchString 2019-09-03 17:16:46 +02:00
Nipun Garg
6fa032a2e1 HDB: Fix the _tileSkyClouds filename 2019-09-03 17:16:46 +02:00
Nipun Garg
57550c1997 HDB: Add assert to check _numTiles 2019-09-03 17:16:46 +02:00
Nipun Garg
55fd11ff6e HDB: Complete setSky() and drawSky() 2019-09-03 17:16:46 +02:00
Nipun Garg
852182be20 HDB: Fill out draw3DStars() and draw3DStarsLeft() 2019-09-03 17:16:46 +02:00
Nipun Garg
833a3ea8e0 HDB: Add fillScreen() for Fill operation 2019-09-03 17:16:46 +02:00
Nipun Garg
2975f5222f HDB: Add _starField to hold PIC_STARX graphics 2019-09-03 17:16:45 +02:00
Nipun Garg
078004ab71 HDB: Add _globalSurface for Fill+other operations 2019-09-03 17:16:45 +02:00
Nipun Garg
1acf595a94 HDB: Abstract the common PixelFormat to hdb.h 2019-09-03 17:16:45 +02:00
Eugene Sandulenko
bc8369a984 JANITORIAL: Remove trailing whitespaces 2019-09-03 17:16:45 +02:00