
Patch: Centred X in close window button
Moderator: OpenTTD Developers
Patch: Centred X in close window button
Since my last patch got shot down, I thought I'd try another one liner: fixing the off centre X that is the close window button. Seemed to be a popular request in my last thread. 

- Attachments
-
- centred_x.diff
- Centred X
- (441 Bytes) Downloaded 271 times
-
- Centred X
- X.png (10.2 KiB) Viewed 5735 times
- webfreakz.nl
- Director
- Posts: 627
- Joined: 11 Aug 2005 08:22
- Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
- Contact:
The only thing I have to say about this one is: MERGE NOW! 

Uncle Dex Says: Follow the KISS Principle!
I personally believe that minor bugfixes are just as important as adding new content, but from the responses I see on the forums, most people seem to disagree. If every small issue in the game gets fixed alongside the big ones, then the final result is a smooth, consistent game with no pesky flaws or annoyances.Akalamanaia wrote: Good job, though i don't see why it needed to be done as i never noticed it..
A computer scientist is someone who, when told to "Go to Hell," sees the "go to," rather than the destination, as harmful.
Need one say more?Graphite wrote:I personally believe that minor bugfixes are just as important as adding new content, but from the responses I see on the forums, most people seem to disagree. If every small issue in the game gets fixed alongside the big ones, then the final result is a smooth, consistent game with no pesky flaws or annoyances.Akalamanaia wrote: Good job, though i don't see why it needed to be done as i never noticed it..

Uncle Dex Says: Follow the KISS Principle!
Something must be wrong with your eyes. Or your monitor.Akalamanaia wrote:Good job, though i don't see why it needed to be done as i never noticed it..
and i doubt anyone casually playing is going to either..
It stands out like a skyscraper in the stone age.
(I would say "like a sore thumb", but that's cliched and insufficiently emphatic.)
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
-
- Tycoon
- Posts: 11501
- Joined: 20 Sep 2004 22:45
- webfreakz.nl
- Director
- Posts: 627
- Joined: 11 Aug 2005 08:22
- Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
- Contact:
-
- Tycoon
- Posts: 11501
- Joined: 20 Sep 2004 22:45
Well, I went and made a nuisance of myself on IRC, and:
So, now you have your answer, webfreak: Both style and solution are incorrect. The former should be easy to fix, but the latter is more difficult.
Code: Select all
<DaleStan> Can anyone explan why this hasn't been committed yet? http://www.tt-forums.net/viewtopic.php?t=22243
<Bjarni> yeah
<Bjarni> the planets aren't in the right position for committing patches from the forum
<peter1138> because it may or may not be correct ;p
<Prof_Frink> peter1138: check it then
<Prof_Frink> you can use it as an excuse not to do newstations
<Bjarni> no, don't do that
<peter1138> i have
<Bjarni> the planets aren't in the right position to even look at diffs from the forum
<Bjarni> they are all orbiting the sun, which makes forum diffs very evil
<belugas> planets all orbiting the sun... you're right... It is Soooo bad
<Tron> DaleStan: it "solves" the problem in a totally wrong way, plus the style is incorrect
<Bjarni> see
<Bjarni> it's evil
<Tron> and that webfreak guy should better shut up
<DaleStan> Well, then, what's the right way?
<Tron> i didn't even bother to look at the problem any closer
<Tron> but pretending the char is one less wide than it is, isn't a valid solution
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
- webfreakz.nl
- Director
- Posts: 627
- Joined: 11 Aug 2005 08:22
- Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
- Contact:
Why should I shut up? And I won't. We live in a free 'country' with rights of free speak so...
Let Tron first be active at the forum and then we'll talk later...
And saying I should shut-up doesn't make any sense to me, how does he know me? He looked here at the forum? Wow! Amazing...
Let Tron first be active at the forum and then we'll talk later...
And saying I should shut-up doesn't make any sense to me, how does he know me? He looked here at the forum? Wow! Amazing...
# Programming is like sex, one mistake and you have to support it for the rest of your life. (Michael Sinz)
Well... is it a bug? Yes. Does this patch completely fix it? Yes. Is it elegant? No.DaleStan wrote:Well, I went and made a nuisance of myself on IRC, and:So, now you have your answer, webfreak: Both style and solution are incorrect. The former should be easy to fix, but the latter is more difficult.Code: Select all
<Tron> but pretending the char is one less wide than it is, isn't a valid solution
In my code, I would include the patch, but add a comment line:
Code: Select all
// kludge. needs recoding to OpenTTD standard
Anyway, last time I checked, the purpose of OpenTTD is to have a working program, not win the "most elegant (but buggy) code" competition.
OTTD NewGRF_ports. Add an airport design via newgrf.Superceded by Yexo's NewGrf Airports 2
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
Want to organise your trains? Try Routemarkers.
--- ==== --- === --- === ---
Firework Photography
In public, yes. On these forums, no, you don't.webfreakz.nl wrote:Why should I shut up? And I won't. We live in a free 'country' with rights of free speak
The *GOVERNMENT* doesn't have the right to censor.[0] Contrary to popular belief, that does not apply to non-governmental organizations.
This is not a government-run forum, nor does it recieve any government money. Ergo any censorship that occurs on these forums is not government censorship, and hence legal.
Richk, a more standard marker of bad-but-working code is "FIXME"; see the coding style document for what OTTD uses.
[0] Ignoring for the moment that the fact that this is not true in all countries.
To get a good answer, ask a Smart Question. Similarly, if you want a bug fixed, write a Useful Bug Report. No TTDPatch crashlog? Then follow directions.
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Projects: NFORenum (download) | PlaneSet (Website) | grfcodec (download) | grfdebug.log parser
Sorry to say, but OpenTTD development happens on IRC mainly, the forums are secondary. So, good you showed up on IRC, webfreakz.webfreakz.nl wrote: Let Tron first be active at the forum and then we'll talk later...
We have to much messy code. If a bug is really critical, we might fix it in such a way for later rewrite. But for a minor bug like this, the cost of a messy fix doesn't outweigh the gain. Besides, in practice, anything scheduled to be "corrected in the future" will remain pending for way too long...richk67 wrote: You can then search for all bits marked "kludge" to correct them in the future.
DevIant, can you explain why this fix works? Maybe we can help you finding a better solution for this problem. Also, stop by on IRC sometime :-)
- toholio
- Traffic Manager
- Posts: 216
- Joined: 20 Dec 2004 00:54
- Location: S37°56.286' E145°07.628'
- Contact:
I suspect that Tron was responding to when you said "Devs: Just merge this one, and don't complain about stuff, just do it....". Ordering the devs about wont make you many friends.webfreakz.nl wrote:Why should I shut up?
Free speech doesn't apply with private forums. What can and can't be said here is up to Orudge.webfreakz.nl wrote:And I won't. We live in a free 'country' with rights of free speak so...
Once you are active in the development of OpenTTD you can complain about its slow pace until then: don't.webfreakz.nl wrote:Let Tron first be active at the forum and then we'll talk later...
- webfreakz.nl
- Director
- Posts: 627
- Joined: 11 Aug 2005 08:22
- Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
- Contact:
The problem with IRC is nothing gets logged to the outside world, you can't read stuff said last week.matthijs wrote:Sorry to say, but OpenTTD development happens on IRC mainly, the forums are secondary. So, good you showed up on IRC, webfreakz.webfreakz.nl wrote: Let Tron first be active at the forum and then we'll talk later...
We have to much messy code. If a bug is really critical, we might fix it in such a way for later rewrite. But for a minor bug like this, the cost of a messy fix doesn't outweigh the gain. Besides, in practice, anything scheduled to be "corrected in the future" will remain pending for way too long...richk67 wrote: You can then search for all bits marked "kludge" to correct them in the future.
DevIant, can you explain why this fix works? Maybe we can help you finding a better solution for this problem. Also, stop by on IRC sometime
# Programming is like sex, one mistake and you have to support it for the rest of your life. (Michael Sinz)
-
- Tycoon
- Posts: 11501
- Joined: 20 Sep 2004 22:45
Who is online
Users browsing this forum: Amazon [Bot] and 22 guests