Commit Graph

369 Commits (c800dcaff8b72a1e9997f39b2fd701fa6378799a)

Author SHA1 Message Date
Pavel Stupnikov 8e4bce58ea Feature: GS methods to scroll viewport for players (#6745) 7 years ago
frosch b4b98e5165 (svn r27893) -Codechange: Use fallthrough attribute. (LordAro) 7 years ago
alberth 3cd390b2ce (svn r27344) -Doc: Documenting the (Re)setObjectToPlace functions. 9 years ago
frosch 4830497f0b (svn r27340) -Fix [FS#6338]: Silence warning by moving _string_colourmap to a file no its own. (Cif) 9 years ago
frosch 9fb56ca02e (svn r27248) -Fix [FS#6257]: Town labels on smallmap and zoomed-out viewports were not centered. (_dp_) 10 years ago
frosch f26e9bf59d (svn r27162) -Fix [FS#6208]: Tile selection was drawn outside of map in some cases. (adf88) 10 years ago
frosch 3adf082db2 (svn r27161) -Fix [FS#6156] [FS#6206]: Reimplement the viewport drawing algorithm. 10 years ago
frosch cfac8dbbc6 (svn r27160) -Fix: Division of signed values by TILE_SIZE requires cast to stay signed. 10 years ago
frosch 06d1d50884 (svn r27158) -Codechange: Simplify mapping from viewport to smallmap coordinates by duplicating less code. 10 years ago
frosch e8e49e5dda (svn r27157) -Fix: Mark bridge middle tiles dirty when building/removing/changing bridges. 10 years ago
frosch 2e1be6081d (svn r27148) -Fix: Rounding and unit-conversion inconsistencies in calls to MarkAllViewportsDirty. 10 years ago
rubidium d534c80e94 (svn r27020) -Cleanup: some coding style consistency improvements (mostly spaces) 10 years ago
rubidium fddeeb5e49 (svn r27002) -Fix-ish: replace some non-ASCII characters with ASCII characters, e.g. @þaram to @param 10 years ago
rubidium a229fb79b5 (svn r26910) -Fix: account for the height of the landscape at the edge of the map to determine the scroll boundaries (based on patch by ic111) 10 years ago
rubidium adf237d550 (svn r26908) -Codechange: replace a magic number by a more logical calculation 10 years ago
rubidium 073aa05da5 (svn r26900) -Fix-ish: dirty the appropriate area around map edges when terraforming there to prevent any artefacts from occuring (ic111) 10 years ago
rubidium 4d619ad10e (svn r26899) -Codechange: reduce the amount of tiles that needs to be drawn by taking the height of tiles into account instead of drawing way too many (ic111) 10 years ago
rubidium c9d7e89138 (svn r26870) -Fix (r15190): since freeform edges the 'tile height' at southern edge * 8 pixels just 'south' of the edge tile would not be drawn and would as a result not be refreshed causing artefacts to remain there. This adds a virtual slope to level 0 so it can be redrawn appropriately. Loosely based on patch by ic111 10 years ago
rubidium 0463dbdc9e (svn r26482) -Codechange: add an include that allows us to undefine/redefine "unsafe" functions to prevent them from being used, and thus having to care about certain aspects of their return values 11 years ago
fonsinchen 4055397915 (svn r26338) -Fix [FS#5908]: Don't redraw the link graph overlay if it's empty (MJP) 11 years ago
rubidium 2618d960e3 (svn r26209) -Codechange: remove some template magic and simplify some code 11 years ago
rubidium 3c94485ba0 (svn r26205) -Feature: SSE 4.1 sprite sorter, improving the sorting performance significantly (MJP)
For example with GCC 4.8, x86_64 Linux, Intel i5-3337U this patch improves the performance of Pile, Treham and Hamac test save games by about 10% in over-all run time at fast forward at 1920x1080 when zoomed out and when trees are not disabled.
11 years ago
frosch 3d99546107 (svn r25823) -Codechange [FS#5780]: Simplify if-cases in ViewportDrawStrings. (Juanjo) 11 years ago
rubidium f4c9ba4981 (svn r25546) -Fix: two small memory leaks 11 years ago
rubidium ef7befdbd8 (svn r25264) -Feature: linkgraph overlay over main viewport (fonsinchen) 12 years ago
frosch 05203587b5 (svn r24975) -Fix [FS#5463]: Additional zoom in levels could glitch by a few pixels due to incorrect rounding. 12 years ago
planetmaker c24374f99c (svn r24900) -Fix [FS#5389]: Comments with typos (most fixes supplied by Eagle_rainbow) 12 years ago
rubidium 41e5c839e0 (svn r24179) -Codechange: move some variables of Town to TownCache 13 years ago
rubidium 113746b3a6 (svn r24068) -Change/fix [FS#5103]: significantly reduce the area that is redrawn for text effects (Rhamphoryncus) 13 years ago
rubidium 927734e6ce (svn r24065) -Feature-ish [FS#5101]: debug option for showing the redrawn dirty blocks/rectangles 13 years ago
frosch 5bf1710a28 (svn r23835) -Change [FS#4999]: Make signs placed in scenario editor belong to the GS. That way they are always shown in game and are not editable. 13 years ago
truebrain e7cd301d3c (svn r23621) -Add: allow manipulation of signs via GameScripts 13 years ago
peter1138 07633a064c (svn r23329) -Fix (r23316): Scale child sprite pixel offsets unless told not to. Fixes lifts and industry graphics. 13 years ago
peter1138 81598273e9 (svn r23316) -Feature: Add ability to zoom in to 2x and 4x level. 13 years ago
peter1138 4e97261315 (svn r23314) -Add: Add settings to restrict viewport zoom levels. 13 years ago
frosch f6ff2a3c15 (svn r23125) -Codechange: Replace some 8s with TILE_SIZE / 2. (adf88) 13 years ago
rubidium 9782b7bb0a (svn r23110) -Codechange: let the flying altitude return ints are well 13 years ago
rubidium 2a2c102b0b (svn r23108) -Codechange: more uint -> int / byte -> int conversions for Z related variables 13 years ago
rubidium 7757a2ed40 (svn r23091) -Codechange: rename some Get*Z functions to Get*PixelZ functions if they return the Z in pixels (like TilePixelHeight) 13 years ago
planetmaker 4b3aa9f26e (svn r22761) -Fix (r22708): Make invisible signs un-clickable (Zuu) 13 years ago
frosch f34c666bc5 (svn r22755) -Fix [FS#4727]: When marking tile selections dirty, use the height information of the corners instead of the surface slope. This is more accurate when the foundation is kind of undefined. 13 years ago
frosch 233065a5d8 (svn r22740) -Fix [FS#4708]: Display the size of the leveled platform in the measurement tooltip of terraforming operations. 13 years ago
frosch 92e701c6ed (svn r22739) -Fix: The measurement tooltip is supposed to be hidden when not dragging an area. 13 years ago
planetmaker 3fb66890ee (svn r22708) -Feature [FS#4701]: Display option to hide competitors' signs and station names (Zuu) 13 years ago
frosch abf286e990 (svn r22649) -Fix [FS#4670]: Switching from a red to a white highlight (by switching to another tool) without switching the highlight mode (HT_RECT etc.) did not mark the selection dirty. 13 years ago
yexo 1714e5d509 (svn r22181) -Fix (r20574): following a vehicle with a very high VehicleID was impossible 14 years ago
rubidium 7eba2bf4d3 (svn r21890) -Cleanup: remove some unneeded includes 14 years ago
rubidium 7efd7e19ed (svn r21845) -Codechange: move documentation towards the code to make it more likely to be updates [d-m]. 14 years ago
alberth 661e13a86a (svn r21667) -Codechange: Introduce _thd.Reset(). 14 years ago
alberth cedb07bba3 (svn r21666) -Codechange: Use GetCallbackWnd at more places. 14 years ago
alberth 22a13850cb (svn r21665) -Codechange: Make GetCallbackWnd a method of _thd. 14 years ago
rubidium b98c758e0b (svn r21648) -Codechange: unduplicate a bit of code 14 years ago
alberth d2564a3e56 (svn r21638) -Codechange (r1): Simplify testing that outersize.x is bigger than 0. 14 years ago
rubidium 2c41b8ee97 (svn r21637) -Codechange: make it more clear that IS_PALETTE_COLOUR belongs to TextColour 14 years ago
smatz b5268dccbd (svn r21632) -Codechange: call ResetObjectToPlace() even when current place_mode is HT_NONE 14 years ago
alberth 96906c1a45 (svn r21628) -Codechange: Remove local variables that just point to global _thd. 14 years ago
alberth 852e647bcc (svn r21627) -Codechange: Remove _place_proc global variable. 14 years ago
alberth 9cdd8c6d48 (svn r21621) -Codechange: Only consider tile highlighting mode bits in tile selection functions. 14 years ago
alberth e930b9985d (svn r21620) -Codechange: Don't consider direction bits when checking for an active highlight mode. 14 years ago
alberth cdae336feb (svn r21619) -Fix [FS#4327]: Don't copy direction bits when restarting a rail selection. 14 years ago
smatz e4e6735cea (svn r21612) -Fix (r21608): dragging with HT_POINT was half a tile off 14 years ago
alberth 90780fd25b (svn r21608) -Codechange: Move diagnonal rectangle dragging detection completely to tile highlighting. 14 years ago
alberth 1ba348914d (svn r21607) -Codechange: Be more robust against having extra bits in HighLightStyle vars. 14 years ago
alberth 08c6b99294 (svn r21600) -Codechange: Remove new_drawstyle and new_diagonal variables from the _thd structure. 14 years ago
alberth 50faf52cfc (svn r21542) -Codechange (r14789): Handling a click at a tile once is enough. 14 years ago
smatz 728220ec88 (svn r21531) -Fix: gcc 3.4 warning 14 years ago
rubidium 20364bcefa (svn r21501) -Fix (rnotlongago): guess what was complaining this time? 14 years ago
rubidium 652e262601 (svn r21498) -Codechange: make the measurement tooltip handle diagonal selection properly 14 years ago
rubidium 959308a243 (svn r21497) -Codechange: prepare the viewport selection mechanism for selecting diagonally 14 years ago
rubidium a029b2b83a (svn r21477) -Fix [FS#4300]: tooltips were removed when their related window got closed 14 years ago
alberth ab50f74d7f (svn r21273) -Codechange: Return values should start at the same line. 14 years ago
alberth 7e48d85104 (svn r21060) -Doc: Improved wording of comments (mostly by __ln__) 14 years ago
alberth 83094e5e58 (svn r21020) -Add: Use center of waypoint in waypoint gui, if available. 14 years ago
alberth 8f24ec9471 (svn r21018) -Doc: Add Doxygen comments to some function. 14 years ago
alberth af941fc598 (svn r21017) -Doc: Small fixes (by Krille). 14 years ago
terkhen 92514c6b94 (svn r20891) -Fix [FS#4145]: Measurement tooltips for docks and tunnels were closed after a hover event. 14 years ago
smatz bb4538665a (svn r20761) -Codechange: make PlaceObject() static 14 years ago
smatz 15c2a2d555 (svn r20760) -Cleanup (r20753): remove unused CheckMouseOverVehicle() 14 years ago
smatz a282c3ab57 (svn r20759) -Fix (r20753): it wasn't possible to build anything when left button scrolling was active 14 years ago
smatz fd54943c7a (svn r20753) -Feature [FS#3999]: make it possible to select vehicle to clone and vehicle to clone orders from directly from vehicle lists and depot window 14 years ago
rubidium 30f2afac9b (svn r20632) -Cleanup: remove "a few" unneeded includes, and add them to some headers 14 years ago
rubidium 3fd1fc35e6 (svn r20358) -Fix [FS#4008]: (r20281) crash when building some stuff when the measurement tooltip is disabled 14 years ago
terkhen 80c43f52e8 (svn r20289) -Codechange: Unify fall through coding style. 14 years ago
frosch 4bd32799f1 (svn r20286) -Codechange: Unify end of doxygen comments. 14 years ago
frosch ed4f806f1d (svn r20283) -Codechange: Unify start of doygen comments. 14 years ago
rubidium e356cb9405 (svn r20281) -Codechange: unify case scope closure + break coding style 14 years ago
terkhen 88ca183191 (svn r20239) -Doc: Give a common name to all fall throughs (FALL THROUGH). 14 years ago
alberth be6c058424 (svn r20211) -Codechange: Indented code should have curly braces around it. 14 years ago
rubidium b8487afe54 (svn r20192) -Cleanup: bye bye variables.h, bye bye VARDEF... you won't be missed :) 14 years ago
rubidium 5a836cdec7 (svn r20187) -Codechange: move _tileh_to_sprite into a function in a more logical place and with a more descriptive name 14 years ago
terkhen 51e6cb0a70 (svn r20119) -Add: Tooltips can be removed if the user stops hovering the mouse. 14 years ago
alberth 22b9bc5157 (svn r20043) -Codechange: Introduce vertical alignment for DrawStringMultiLine(). 14 years ago
frosch eb02ce0573 (svn r19942) -Fix [FS#3871](r19816): Vertical dragging of rail was broken. 15 years ago
frosch 4b7afccd46 (svn r19911) -Codechange: Simplify text drawing by eliminating global variables and side effects. This also fixes the 'colour' parameter of DrawStringMultiLine(). 15 years ago
alberth 51e67a40e0 (svn r19909) -Doc: Typo fixes, small doxygen improvements. 15 years ago
alberth ce0e1cbb3f (svn r19905) -Codechange: Use EventState for mouse handling routines. 15 years ago
smatz 93233a9335 (svn r19870) -Codechange: silence some of GCC 3.3 warnings 15 years ago
rubidium 241dd9a9f5 (svn r19817) -Fix: MSVC compile warnings 15 years ago
rubidium 548dd91ef0 (svn r19816) -Codechange: use static const uint for the unnamed 'tile consts' enum as well 15 years ago
alberth 8d1d4267af (svn r19767) -Fix [FS#3808]: Height in smallmap was different from measured heights (ChillCore). 15 years ago