Commit Graph
2493 Commits
Author SHA1 Message Date
Willem Jan Palenstijn 5686d606f0 BUILD: Support libedit readline wrapper
This is used in Mac OS X. Thanks to waltervn for pointing this out and
testing.
2014-01-02 01:04:24 +01:00
Eugene Sandulenko ae6efb09b7 JANITORIAL: Update copyright year 2014-01-01 12:44:08 +02:00
Johannes Schickel fe7f28bf6c GUI: Do not draw text outside edit rect in EditableWidget. 2013-11-24 01:15:27 +01:00
Johannes Schickel b487c1fc38 GUI: Fix undrawing caret glitch when the edit text is inversed.
This is prominently visible in the list based save/load chooser since the
edit string is drawn on a special green background there. When the caret is
at the end of the edit string this would result in the green color missing
at the place of the (undrawn) caret. To avoid this we simply draw a fake
space now.
2013-11-24 00:38:47 +01:00
Johannes Schickel 95f07fd405 GUI: Document EditableWidget::getEditRect. 2013-11-24 00:20:29 +01:00
Johannes Schickel 3be846cfd7 GUI: Draw caret over the whole height of the edit rect.
This improves the look of the editable widgets.
2013-11-24 00:15:48 +01:00
Johannes Schickel bb4a730a88 GUI: Fix out-of-bounds check in EditableWidget::drawCaret.
The line "y + editRect.height() + 2" is not included in drawing anymore. Thus
it is allowed to equal EditableWidget::_h.
2013-11-24 00:15:48 +01:00
Johannes Schickel aaad08c9fe GUI: Fix character redrawing behind caret in EditTextWidgets.
This fixes an ugly y position change when the caret is moved to a character in
an edit text widget.
2013-11-24 00:15:48 +01:00
Johannes Schickel e036aa76da GUI: Fix EditTextWidget::getEditRect's returned height. 2013-11-24 00:15:48 +01:00
Johannes Schickel 129e891a87 GUI: Fix ListWidget::getEditRect's returned height. 2013-11-24 00:15:47 +01:00
Joel Teichroeb 51dceaf165 GUI: Use Common::String for console history, to ensure buffer safety.
Previously, if the user enters a command that is more than 256
characters, it will overflow the history buffer.

By using a Common::String, this is not possible.
2013-11-14 15:23:01 +00:00
Joel Teichroeb 0ccc918940 GUI: Fix for potential bad cursor palette access in warning case.
Previously, if the colorsFound exceeded the maximum number of
cursor colors, a bad access to the cursor palette buffer could be
performed before the warning was emitted. This reordering avoids
that.
2013-11-14 15:11:16 +00:00
Eugene Sandulenko aa2a6d7445 GUI: Skip useless assignment. CID 1002117 2013-11-03 01:28:03 +02:00
Thierry Crozat 0d20acf8de CREDITS: Add credits for game translations 2013-10-30 21:56:39 +00:00
Johannes Schickel f20471d962 Merge pull request #408 from lordhoto/opengl-replacement
OpenGL revamp
2013-10-20 06:20:46 -07:00
Johannes Schickel fa90f9797c GUI: Check for screen change whenever an event is polled.
This should *hopefully* really fix all GUI crashes when resizing with OpenGL.
2013-10-19 22:18:22 +02:00
Willem Jan Palenstijn a532c7729f Merge branch 'zvision'
This merges pull request 395 for the ZVision engine developed during
GSoC2013.
2013-10-17 23:00:00 +02:00
Willem Jan Palenstijn 1771162242 Merge branch 'avalanche'
This merges pull request 399 for the Avalanche engine developed during
GSoC2013.
2013-10-17 22:33:15 +02:00
RichieSams 7a97c992de ZVISION: Use credits.pl to update AUTHORS and credits.h 2013-10-14 19:02:18 -05:00
Strangerke 7b11be0a92 AVALANCHE: Fix savegame patterns 2013-10-07 22:26:33 +02:00
uruk 77c10447c3 AVALANCHE: Repair credits.h 2013-10-07 10:04:53 +02:00
Matthew Hoops 303261482d CREDITS: Add Keith for some pegasus patches 2013-10-06 22:41:30 -04:00
uruk fed8546444 AVALANCHE: Update credit files. 2013-10-06 01:20:20 +02:00
Johannes Schickel 023fedef48 GUI: Do not return current input on cancel in PredictiveDialog.
Returning the currently displayed input when you click cancel is confusing
behavior in my eyes.
2013-10-02 00:16:59 +02:00
Johannes Schickel 225a823555 GUI: Initialize PredictiveDialog::_predictiveResult.
This fixes garbage output when canceling the predictive dialog in AGI when
nothing was entered.
2013-10-02 00:16:59 +02:00
Johannes Schickel 6ace85a84d GUI: Clean up calloc use in PredictiveDialog.
Instead of manually multiplying the entry count with the entry size we simply
use both parameters of calloc as intended now.
2013-10-02 00:16:59 +02:00
Johannes Schickel 45e7ba130e GUI: Fix compilation with clang and C++11.
newDictLine is allocated with calloc in line 856 thus there is no need to
initialize any entry.
2013-10-02 00:16:59 +02:00
Eugene Sandulenko 054ef1f1cd GUI: Fix compiler warning 2013-09-30 14:36:59 +03:00
D G Turner 62d07700b3 GUI: Fix missing initializers for ListWidget. CID 1002259. 2013-09-30 04:53:17 +01:00
Eugene Sandulenko 4c2dc5fb3f RECORDER: Fix warning 2013-09-09 00:46:03 +03:00
Eugene Sandulenko 8a340007ea Merge pull request #361 from rundfunk47/guiimprovements
GUI: Various GUI Improvements
2013-08-22 05:31:23 -07:00
Narek Mailian 94792d2063 THEME: Add back entry for color when hovering over button 2013-08-22 12:01:27 +02:00
Strangerke 69aef2a55a MORTEVIELLE: Add credits 2013-08-20 23:14:54 +02:00
Filippos Karapetis 1f89b4e902 CREDITS: Add credits for The Neverhood engine 2013-08-20 19:48:33 +03:00
Johannes Schickel 74a056e746 GUI: Clear dirty rects when initializing ThemeEngine.
This avoids nasty invalid writes to the overlay when the overlay is being
resized.
2013-08-19 00:06:46 +02:00
Narek Mailian 6fa3c7751f GRAPHICS: Gradient blending on borders of rounded squares 2013-08-16 20:54:10 +02:00
Narek Mailian 5c00dbbd2a GRAPHICS: Add support for Soft Shadows with rounded squares 2013-08-16 20:54:08 +02:00
Narek Mailian 887a99e211 GRAPHICS: Added changes and improved code from inisider/scummvm (partial text)
Includes code from https://github.com/inisider/scummvm/ , which has been
squashed and bugfixed
2013-08-16 20:54:08 +02:00
D G Turner 01a1e63786 GUI: Add code to default theme generation to reduce string length.
The additional code skips the extraneous spaces after the end of an
XML close brace (>) reducing the string literal by 3106 characters,
thus bringing it within the limit for C++ string literals.

Have regenerated the default.inc from scummclassic with this change.
2013-08-16 06:57:40 +01:00
D G Turner 49ea7cd1fd GUI: Add too long string literal warning code to theme generation tool.
This has the same effect as clang's -Woverlength-strings warning of
string literals longer than C++ compilers are specified to work with.
2013-08-16 06:54:54 +01:00
Johannes Schickel 818d3981e3 Merge pull request #377 from lordhoto/config-manager-cleanup
Config Manager Cleanup
2013-08-12 14:30:22 -07:00
Eugene Sandulenko 81e1d0963f Merge pull request #359 from rundfunk47/32bitguioverlay
GUI: Add option to render GUI in 32-bits
2013-08-12 05:27:44 -07:00
Thierry Crozat f125dce608 GUI: Initialise _hotkey in ButtonWidget constructor
One of the two ButtonWidget constructor did not initialise _hotkey
when given a non-null value. This caused valgrind to report an
access to uninitialised variable in Dialog::handleKeyDown().
2013-08-10 23:26:53 +01:00
Narek Mailian 1f1d35bd3d GRAPHICS: Allow VectorRenderer and ThemeEngine to init with 4BPP 2013-08-08 08:35:08 +02:00
Narek Mailian f545a2f08f GUI: Change name of GUI-renderers to remove "16-bit" 2013-08-08 08:35:08 +02:00
Johannes Schickel 969a33a32d GUI: Allow GUI cursor creation to work with abitrary 2/4Bpp formats. 2013-08-08 08:35:07 +02:00
Johannes Schickel 11eb168582 GUI: Use Domain::const_iterator in EventRecorder code when possible. 2013-08-08 03:12:02 +02:00
Johannes Schickel b1bd9322a1 GUI: Take advantage of Surface::getPixels. 2013-08-03 04:02:50 +02:00
Johannes Schickel 103e926c07 GUI: Prefer getBasePtr instead of direct Surface::pixels access. 2013-08-03 04:02:48 +02:00
Eugene Sandulenko 2c812ade01 Merge pull request #353 from clone2727/eventrec_timer_fix
ALL: Don't use EventRecorder at all when not compiled in
2013-07-18 08:15:28 -07:00