Martin Kiewitz
|
971cfcbd9e
|
SCI: support for upscaling implemented, included clipping
svn-id: r47328
|
2010-01-16 19:21:06 +00:00 |
|
Martin Kiewitz
|
d1733bcf15
|
SCI: scaling support, upscaling not yet supported - not really tested, so there may be bugs
svn-id: r47325
|
2010-01-16 17:30:17 +00:00 |
|
Martin Kiewitz
|
e29c4e7af7
|
SCI: View::drawScaled() created (doesnt do scaling yet), removed scaling variables from View::draw, gfx calls drawScaled() when scaleX/Y != 128, getting scaled rect inside kAnimate()
svn-id: r47322
|
2010-01-16 16:17:45 +00:00 |
|
Martin Kiewitz
|
944774e9f5
|
SCI: created getCelScaledRect() inside view class
svn-id: r47319
|
2010-01-16 14:20:00 +00:00 |
|
Martin Kiewitz
|
7c8ae63101
|
SCI: more detail info about scaleSignal bit 1
svn-id: r47314
|
2010-01-15 21:40:58 +00:00 |
|
Martin Kiewitz
|
8689f1d8cc
|
SCI: added enum for ScaleSignal
svn-id: r47313
|
2010-01-15 21:32:18 +00:00 |
|
Martin Kiewitz
|
0dddf869fb
|
SCI: changed scalesignal to scaleSignal - selector works now :)
svn-id: r47312
|
2010-01-15 21:26:02 +00:00 |
|
Martin Kiewitz
|
edb9487df5
|
SCI: adding caching for scalesignal, scaleX and scaleY within kAnimate()
svn-id: r47311
|
2010-01-15 21:13:33 +00:00 |
|
Martin Kiewitz
|
ef5c9f62d7
|
SCI: implemented mouse interaction while being in keyboard mode, also ignore disabled entries/separator lines within mouse mode
svn-id: r47285
|
2010-01-12 21:49:43 +00:00 |
|
Martin Kiewitz
|
1ebe047972
|
SCI: using _menuRect inside Menu::mouseFindMenuItemSelection for easier code, also fixed stupid oversight that made the code crash in e.g. lsl6
svn-id: r47278
|
2010-01-12 20:51:45 +00:00 |
|
Martin Kiewitz
|
a62bf2528f
|
SCI: interactive menu with mouse fully implemented, mouse within keyboard menu not yet done
svn-id: r47277
|
2010-01-12 20:38:57 +00:00 |
|
Martin Kiewitz
|
7ed2146977
|
SCI: changed interactive with mouse menu code (still not finished)
svn-id: r47273
|
2010-01-12 19:52:43 +00:00 |
|
Johannes Schickel
|
003c62fee8
|
A null pointer can be safely passed to "delete", thus there is no need to check against the pointer being non-zero in advance.
svn-id: r47272
|
2010-01-12 19:07:03 +00:00 |
|
Martin Kiewitz
|
c1e4156587
|
SCI: added comment about "not behaving like sierra here", also added TODO on mouse state change
svn-id: r47270
|
2010-01-12 18:46:42 +00:00 |
|
Martin Kiewitz
|
a14f044daa
|
SCI: deleting _font when changing active font
svn-id: r47269
|
2010-01-12 18:43:10 +00:00 |
|
Martin Kiewitz
|
52eb58a3e5
|
SCI: View::getCelCount now validates input
svn-id: r47267
|
2010-01-12 18:24:37 +00:00 |
|
Martin Kiewitz
|
6a5dbf6db7
|
SCI: continue when kPortrait is called with no sync resource existant for mouth movement, prints warning() instead
svn-id: r47263
|
2010-01-12 12:00:00 +00:00 |
|
Filippos Karapetis
|
dc45c729a9
|
Added mouse click handling for top menus (mouse clicks on menu items of each menu are not handled yet)
svn-id: r47260
|
2010-01-12 00:18:40 +00:00 |
|
Martin Kiewitz
|
3145ee5379
|
SCI: changed displaceY and displaceX for cels to int16, also inserted cast to signed char for sci1 displaceX - should fix wii flickering and incorrect cel placement problems
svn-id: r47257
|
2010-01-11 20:31:12 +00:00 |
|
Filippos Karapetis
|
6d53dfe917
|
Some portrait-related changes, to be used when portrait loading/unloading is done. Also, added a comment on where the class is used
svn-id: r47251
|
2010-01-11 14:12:52 +00:00 |
|
Filippos Karapetis
|
6a07bbd5f4
|
Moved all the cache limits inside helpers.h and removed an obsolete TODO
svn-id: r47250
|
2010-01-11 12:23:04 +00:00 |
|
Filippos Karapetis
|
51afa7b0b6
|
- Set the palette inside doit() again
- Removed a now obsolete TODO
- Portrait animations are now stopped when the Esc key is pressed, or when the engine should quit
svn-id: r47247
|
2010-01-11 10:59:52 +00:00 |
|
Filippos Karapetis
|
fc8fc3a664
|
The portrait file data is now freed after the portrait animation is done
svn-id: r47246
|
2010-01-11 10:37:32 +00:00 |
|
Filippos Karapetis
|
4996b7a7d4
|
Cleanup, fixed a memory leak
svn-id: r47245
|
2010-01-11 10:31:40 +00:00 |
|
Filippos Karapetis
|
009b86e8cb
|
- Don't set the palette per portrait frame - setting the whole screen palette is a very expensive operation, and shouldn't be done on each frame, especially when all of the frames use the same palette
- Cleanup
svn-id: r47241
|
2010-01-11 09:30:41 +00:00 |
|
Martin Kiewitz
|
bda3fc940c
|
SCI: kPortrait - abort on mouse presses only
svn-id: r47225
|
2010-01-10 13:22:45 +00:00 |
|
Martin Kiewitz
|
4122e411d0
|
SCI: kPortrait - mouse click now aborts portrait
svn-id: r47224
|
2010-01-10 13:11:53 +00:00 |
|
Martin Kiewitz
|
156e341e9b
|
SCI: kPortrait - error() out when resource could not be found
svn-id: r47222
|
2010-01-10 11:29:58 +00:00 |
|
Martin Kiewitz
|
7a5c119930
|
SCI: ignore hiresMode when not being upscaledHires for kDrawCel and updateBox on kGraph - fixes kq6 dos
svn-id: r47221
|
2010-01-10 11:21:55 +00:00 |
|
Martin Kiewitz
|
231e122c63
|
SCI: updateBox now also supports hires mode
svn-id: r47219
|
2010-01-10 09:42:55 +00:00 |
|
Martin Kiewitz
|
7d16dbeb35
|
SCI: changed location of hack inside kDrawCel, coordinates of savedhiresbox may not get port adjusted
svn-id: r47218
|
2010-01-10 09:07:09 +00:00 |
|
Martin Kiewitz
|
da09ee6732
|
SCI: switching to hires kDrawCel when 8th parameter is passed, fixed kDrawCel port adjust - fixes kq6 hires inventory
svn-id: r47217
|
2010-01-10 08:55:19 +00:00 |
|
Martin Kiewitz
|
2c1ef90b87
|
SCI: kPortrait - now drawing after wait, also using gui wait so mouse cursor still works during execution, makes lip sync perfect (thx to the other fix by fingolfin)
svn-id: r47214
|
2010-01-09 23:01:38 +00:00 |
|
Martin Kiewitz
|
8fdf6a8095
|
SCI: kPortrait - drawing base bitmap before drawing animation bitmap
svn-id: r47211
|
2010-01-09 21:20:39 +00:00 |
|
Martin Kiewitz
|
6619d95f48
|
kPortrait: found the coordinate offsets, corrected actual bitmap size (sometimes extra bytes are appended per line) animation bitmaps now valid
svn-id: r47210
|
2010-01-09 21:12:08 +00:00 |
|
Martin Kiewitz
|
c73927ee4c
|
SCI: deleting _bitmaps and unlocking sync resource in kPortrait
svn-id: r47208
|
2010-01-09 20:43:24 +00:00 |
|
Martin Kiewitz
|
273da184ee
|
SCI: kPortrait - animation included, doesnt seem right currently coordinate offset is missing (cause i cant find it) and mouth movement doesnt seem right...at least the basics work and graphic data is fine
svn-id: r47206
|
2010-01-09 20:38:22 +00:00 |
|
Martin Kiewitz
|
7f78815e0e
|
SCI: kPortrait almost fully implemented (animation bitmaps still missing)
svn-id: r47204
|
2010-01-09 19:12:53 +00:00 |
|
Martin Kiewitz
|
30d787a829
|
SCI: adding audio support to kPortrait, audio is now playing when portraits are shown
svn-id: r47202
|
2010-01-09 18:18:52 +00:00 |
|
Martin Kiewitz
|
a815d0e12a
|
SCI: added new debug command "picture_visualize", which enables visualization of the drawing process of EGA pictures
svn-id: r47201
|
2010-01-09 14:09:45 +00:00 |
|
Martin Kiewitz
|
c067bf053d
|
SCI: support "Ctrl-" prefix keys in menu, makes Ctrl-keys work in lsl6
svn-id: r47164
|
2010-01-08 17:25:39 +00:00 |
|
Martin Kiewitz
|
b5603ee822
|
SCI: support "+" and "-" for menu (fixes speed changes via those keys in all games)
svn-id: r47163
|
2010-01-08 16:52:45 +00:00 |
|
Martin Kiewitz
|
2aca490e13
|
SCI: remove displaying tag in menu of some games (e.g. qfg1ega)
svn-id: r47143
|
2010-01-07 23:32:45 +00:00 |
|
Martin Kiewitz
|
8a1583da9b
|
SCI: kPortrait actually gets lowres coordinates that need to get adjusted according to curPort (does this make sense? noooo), fixes portrait coordinates in kq6
svn-id: r47142
|
2010-01-07 20:41:52 +00:00 |
|
Martin Kiewitz
|
7a636ead9d
|
SCI: sierra sci doesnt seem to adjust according to port on upscaledhires_save_box, this (and all the other fixes) finally fixes coordinates for kq6 hires cel placement
svn-id: r47141
|
2010-01-07 20:36:00 +00:00 |
|
Martin Kiewitz
|
140b22a374
|
SCI: implement crazy hack that fixes coordinates of some cel placements. I'm not sure if thats what sierra sci actually does or if we get coordinates 0,0 due some error somewhere. Fixes portrait window placement in kq6 - strangely they are still not at the correct height perhaps related to not adjusting "correctly" (whatever this means in this ugly mess that hires was implemented) inside BitsSave()
svn-id: r47140
|
2010-01-07 20:29:48 +00:00 |
|
Martin Kiewitz
|
9577a45cdd
|
SCI: fixed save/restorebits within screen class for displayscreen case, fixes kq6 menu bar
svn-id: r47125
|
2010-01-07 15:50:58 +00:00 |
|
Martin Kiewitz
|
7f358e3bbd
|
SCI: changed kernel signature for kDrawCel, enabled upscaled hires savebox code ("crashed" before because afterwards kDrawCel will get the handle from the savebox call)
svn-id: r47121
|
2010-01-07 15:25:03 +00:00 |
|
Martin Kiewitz
|
519e80ca8b
|
SCI: implemented additional drawCel for hires views, fixes menu bar of kq6 - still need to fix coordinates and implement save/restoreBits for hires
svn-id: r47116
|
2010-01-07 14:46:29 +00:00 |
|
Martin Kiewitz
|
4701d0799c
|
SCI: small cleanup in view drawing
svn-id: r47108
|
2010-01-07 13:56:56 +00:00 |
|