Commit Graph
3567 Commits
Author SHA1 Message Date
Pragyansh Chaturvedi 5c17fe70b8 JANITORIAL: Fix conventions and reimplement MacFontManager::rectifyId() 2022-07-17 13:04:14 +02:00
Pragyansh Chaturvedi c4f6aa89b9 GRAPHICS: Implement assigning of windows font, check for wrong fontId while loading stxt, read name from FON files DIRECTOR 2022-07-17 13:04:14 +02:00
Pragyansh Chaturvedi 8cb2e1bb07 GRAPHICS: Add rectifyId to check for changed font IDs 2022-07-17 13:04:14 +02:00
Pragyansh Chaturvedi 94848be816 GRAPHICS: Set MacText->_defaultFormatting values after generating font 2022-07-17 13:04:14 +02:00
Paweł Kołodziejski 0ca414daa0 TINYGL: Removed few more forced inlines 2022-07-17 01:35:19 +02:00
Paweł Kołodziejski 31e3132896 TINYGL: Reduced some forced inlines 2022-07-17 01:10:54 +02:00
Paweł Kołodziejski f045abc031 TINYGL: Removed some not needed inlines 2022-07-16 23:54:41 +02:00
Le Philousophe 6c2c603df2 OPENGL: Fix cast on Vertex Attribute pointer 2022-07-16 09:57:42 +02:00
Eugene Sandulenko f21d5582b0 GRAPHICS: Fix Rect drawing in primitives 2022-07-14 14:40:18 +02:00
Eugene Sandulenko 3515dc79eb GRAPHICS: MACGUI: Switch to wider Rect primitives for now
We need to eliminate their usage but that requires more testing
2022-07-13 23:23:03 +02:00
Eugene Sandulenko 57d91c8bdd GRAPHICS: Draw thick lines with wider rectangles for the time being 2022-07-13 23:20:49 +02:00
Eugene Sandulenko d8a5a284e7 GRAPHICS: Added primitives drawing over bigger rectangles
We do not count right and bottom edges of Common::Rect. But the
original primitives.cpp was drawn _with_ this in mind.

This introduces *1 methods which will be used by Director, WAGE
and MacGUI. Maybe at some moment in the future we will rewrite
those.
2022-07-13 23:01:48 +02:00
Le Philousophe 15235fa8ad OPENGL: Add workaround for AmigaOS which supports GLSL 0.9 2022-07-13 19:00:15 +02:00
Le Philousophe 1b35e66c01 OPENGL: Dump GLSL version string
This will ease to debug parsing errors
2022-07-04 08:13:49 +02:00
Eugene Sandulenko d37a01fd2c GRAPHICS: MACGUI: Fix rendering for 32bpp mode 2022-07-04 01:36:18 +02:00
Eugene Sandulenko c87c02c5ae GRAPHICS: Return flag if palette was updated for the palette lookup 2022-07-04 01:36:18 +02:00
Cameron Cawley 0eb11216fb OPENGL: Add Shader::addAttribute() 2022-07-03 22:26:10 +03:00
Eugene Sandulenko 4649680c9b GRAPHICS: MACGUI: Switch color lookup to Graphics::PaletteLookup 2022-07-03 12:50:06 +02:00
Eugene Sandulenko 5abc6bda81 GRAPHICS: Added palette lookup class 2022-07-03 12:50:06 +02:00
Pragyansh Chaturvedi fb6497a059 DIRECTOR: Fix constrainH fail build step in BUILDBOT by adding _constraint check 2022-07-02 23:58:15 +02:00
Pragyansh Chaturvedi 1ec5304e8a DIRECTOR: Fix buildbot failure on null macmenu 2022-07-02 23:58:15 +02:00
Avijeet 7beaa38ef6 COMMON: MACGUI: Append string with font in appendText 2022-07-02 22:41:36 +02:00
Avijeet dfed81dfff COMMON: MACGUI: Fix MacTextWindow scrolling 2022-06-30 22:43:06 +02:00
D G Turner 8ee4251f41 OPENGL: Fix Integer to Pointer Cast GCC Compiler Warning
This is emitted when -Wint-to-pointer-cast is passed to GCC.
2022-06-30 01:04:59 +01:00
Cameron Cawley c13961362f OPENGL: Ensure that glGetError() is cleared before calling a checked function 2022-06-29 22:37:38 +01:00
Cameron Cawley 863988fee4 OPENGL: Add proper error checking to the Shader class 2022-06-29 22:37:38 +01:00
Cameron Cawley fb1db0e94f OPENGL: Allow enabling vertex attributes without using a VBO 2022-06-29 14:15:46 +01:00
Avijeet 44f19d74be COMMON: MACGUI: Fix transparency artifacts in subMenu 2022-06-28 23:36:29 +02:00
Cameron Cawley 7b4aff4ac6 OPENGL: Add a return value to setUniform(), and use Common::String 2022-06-28 21:40:36 +01:00
Paweł Kołodziejski d832c015ad TINYGL: Fixed missing semicolon 2022-06-27 22:45:59 +02:00
neuromancer ca89768161 TINYGL: avoid zero division when drawing lines (#4064)
TINYGL: avoid zero division when drawing lines
2022-06-27 22:21:54 +02:00
D G Turner 6bcd18f126 OPENGL: Add Missing Header Defining USE_FORCED_GLES Symbol to Shader Code
This missing header meant that USE_FORCED_GLES would always be undefined
and thus by default resolve to false i.e. disabled.
2022-06-26 23:14:14 +01:00
Le Philousophe 98c306376f OPENGL: Merge both OpenGL shaders objects 2022-06-26 18:32:10 +02:00
Le Philousophe 4ab044a254 OPENGL: Merge both OpenGL contexts 2022-06-26 18:32:10 +02:00
D G Turner 5d0e6e7bb5 GRAPHICS: MACGUI: Remove Invalid Check of this against NULL
The object's self reference of "this" can never be null, thus this
generates a GCC compiler warning when -Wnonnull-compare is passed.
2022-06-22 01:38:51 +01:00
Pragyansh Chaturvedi (r41k0u) 9fa3ec41f0 DIRECTOR: LINGO: Implement MENUREF in LC::c_theentityassign() and check for nullptr 2022-06-22 00:55:14 +02:00
Pragyansh Chaturvedi (r41k0u) d5485c7595 DIRECTOR: LINGO: Fix MacMenu::getName() to implement STUB kTheMenu 2022-06-22 00:55:14 +02:00
Pragyansh Chaturvedi (r41k0u) f83934e05b DIRECTOR: LINGO: Implement MENUREF Datum type and STUB for Menu, Menus, MenuItem and MenuItems [WIP] 2022-06-22 00:55:14 +02:00
Eugene Sandulenko 83f66c6eb0 GRAPHICS: MACGUI: Fixed pattern origin calculation 2022-06-17 01:07:14 +02:00
elasota 95fd7dcffc GRAPHICS: Fix alpha blend on 16-bit targets treating the destination pixel as black 2022-06-13 20:14:36 +03:00
elasota 8c560fe94f GRAPHICS: Fix redundant color loads 2022-06-13 15:09:08 +02:00
elasota 709175d835 GRAPHICS: Optimized managed surface blit in transparent/opaque pixel case 2022-06-13 15:09:08 +02:00
antoniou79 9e96c12fc6 GRAPHICS: Fix segmentation fault for thumbnail from incomplete fill
Common::fill fills up to but not including the address of the last item

Previously the last item of array v was not filled with 0, so if the rest of the code in the scaleLine() method did not update it, it would have a random init value which could cause segmentation fault when using the scale() method.
2022-06-12 15:09:25 +02:00
elasota 27f5d32ace GRAPHICS: Remove false positive warning from Win cursor group parser 2022-06-12 14:06:59 +02:00
Pragyansh Chaturvedi (r41k0u) 8409314414 DIRECTOR: LINGO: Implement MacText::enforceFontSlant() and implement kTheTextStyle STUB in TextCastMember::setField() 2022-06-06 18:32:14 +02:00
Pragyansh Chaturvedi (r41k0u) 334bbd11a3 DIRECTOR: LINGO: Implement MacText::enforceTextFont() and use it to implement STUB kTheTextFont in TextCastMember::setField() 2022-06-06 18:32:14 +02:00
Pragyansh Chaturvedi (r41k0u) 26779bbd1d DIRECTOR: Revert _ptext change check omission in TextCastMember::setText(), remove unnecessary initialisation of string in MacText::getPlainText() 2022-06-06 18:32:14 +02:00
Pragyansh Chaturvedi (r41k0u) f241bdefd3 DIRECTOR: LINGO: Implement kTheTextFont, kTheTextStyle, kTheTextHeight and kTheTextSize in Lingo::setField() 2022-06-06 18:32:14 +02:00
Pragyansh Chaturvedi (r41k0u) 0a95714cac DIRECTOR: GRAPHICS: Add getPlainText() function to MacText 2022-06-06 18:32:14 +02:00
Eugene Sandulenko 502d171fc3 GRAPHICS: Improved error message on surface conversion 2022-06-06 01:55:58 +02:00