Patch: Centred X in close window button

Forum for technical discussions regarding development. If you have a general suggestion, problem or comment, please use one of the other forums.

Moderator: OpenTTD Developers

User avatar
dev|ant
Traffic Manager
Traffic Manager
Posts: 140
Joined: 30 Nov 2005 11:26
Location: melbourne.au

Patch: Centred X in close window button

Post by dev|ant »

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. :D
Attachments
centred_x.diff
Centred X
(441 Bytes) Downloaded 271 times
Centred X
Centred X
X.png (10.2 KiB) Viewed 5735 times
User avatar
webfreakz.nl
Director
Director
Posts: 627
Joined: 11 Aug 2005 08:22
Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
Contact:

Post by webfreakz.nl »

Great! :D

Devs: Just merge this one, and don't complain about stuff, just do it....
# Programming is like sex, one mistake and you have to support it for the rest of your life. (Michael Sinz)
User avatar
Dextro
Chief Executive
Chief Executive
Posts: 701
Joined: 12 Jan 2005 21:56
Location: Lisboa, Portugal
Contact:

Post by Dextro »

The only thing I have to say about this one is: MERGE NOW! :mrgreen:
Uncle Dex Says: Follow the KISS Principle!
Horse
Transport Coordinator
Transport Coordinator
Posts: 325
Joined: 10 Sep 2004 20:25

Post by Horse »

This is a good solotion for people with bad eyes.

Really don't close this topic ths is serious good for they people.
User avatar
Killer 11
Tycoon
Tycoon
Posts: 2463
Joined: 06 Jan 2004 18:38
Location: Kaunas, Lithuania
Contact:

Post by Killer 11 »

wahoooo! Teh X is in Teh Center now muhahaha :twisted: :twisted: :twisted: :twisted:
User avatar
Villem
Tycoon
Tycoon
Posts: 3310
Joined: 28 Aug 2003 09:38

Post by Villem »

TTDPatch had this ages ago! :P
J/K

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..
oh well, one more patch to the big list of patches..
User avatar
Graphite
Engineer
Engineer
Posts: 84
Joined: 17 Nov 2005 20:56
Location: Netherlands
Contact:

Post by Graphite »

Akalamanaia wrote: Good job, though i don't see why it needed to be done as i never noticed it..
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.
A computer scientist is someone who, when told to "Go to Hell," sees the "go to," rather than the destination, as harmful.
User avatar
Dextro
Chief Executive
Chief Executive
Posts: 701
Joined: 12 Jan 2005 21:56
Location: Lisboa, Portugal
Contact:

Post by Dextro »

Graphite wrote:
Akalamanaia wrote: Good job, though i don't see why it needed to be done as i never noticed it..
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.
Need one say more? ;)
Uncle Dex Says: Follow the KISS Principle!
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

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..
Something must be wrong with your eyes. Or your monitor.
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
DeletedUser21
Tycoon
Tycoon
Posts: 11501
Joined: 20 Sep 2004 22:45

Post by DeletedUser21 »

Now we have someting to brag about!

'The 'X' is in the middle now! :twisted: '
User avatar
webfreakz.nl
Director
Director
Posts: 627
Joined: 11 Aug 2005 08:22
Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
Contact:

Post by webfreakz.nl »

Mr. X wrote:Now we have someting to brag about!

'The 'X' is in the middle now! :twisted: '
So is the X in your avatar!

btw:

Are you a Doom3 fanatic? (MarsCity UAC) ??
# Programming is like sex, one mistake and you have to support it for the rest of your life. (Michael Sinz)
DeletedUser21
Tycoon
Tycoon
Posts: 11501
Joined: 20 Sep 2004 22:45

Post by DeletedUser21 »

Nah, that was part of a little joke, about where you lived, and some tought that some of us came from mars, and I'm not hiding that. :wink: :P


But anyway, The X is centered, whats next? :P
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

Well, I went and made a nuisance of myself on IRC, and:

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
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.
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
User avatar
webfreakz.nl
Director
Director
Posts: 627
Joined: 11 Aug 2005 08:22
Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
Contact:

Post by webfreakz.nl »

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...
# Programming is like sex, one mistake and you have to support it for the rest of your life. (Michael Sinz)
richk67
Tycoon
Tycoon
Posts: 2363
Joined: 05 Jun 2003 16:21
Location: Up North
Contact:

Post by richk67 »

DaleStan wrote:Well, I went and made a nuisance of myself on IRC, and:

Code: Select all

  <Tron> but pretending the char is one less wide than it is, isn't a valid solution
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.
Well... is it a bug? Yes. Does this patch completely fix it? Yes. Is it elegant? No.

In my code, I would include the patch, but add a comment line:

Code: Select all

// kludge. needs recoding to OpenTTD standard
You can then search for all bits marked "kludge" to correct them in the future.

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
DaleStan
TTDPatch Developer
TTDPatch Developer
Posts: 10285
Joined: 18 Feb 2004 03:06
Contact:

Post by DaleStan »

webfreakz.nl wrote:Why should I shut up? And I won't. We live in a free 'country' with rights of free speak
In public, yes. On these forums, no, you don't.

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
matthijs
Engineer
Engineer
Posts: 76
Joined: 25 Jun 2004 15:20
Location: Enschede, Netherlands
Contact:

Post by matthijs »

webfreakz.nl wrote: Let Tron first be active at the forum and then we'll talk later...
Sorry to say, but OpenTTD development happens on IRC mainly, the forums are secondary. So, good you showed up on IRC, webfreakz.
richk67 wrote: You can then search for all bits marked "kludge" to correct them in the future.
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...

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 :-)
User avatar
toholio
Traffic Manager
Traffic Manager
Posts: 216
Joined: 20 Dec 2004 00:54
Location: S37°56.286' E145°07.628'
Contact:

Post by toholio »

webfreakz.nl wrote:Why should I shut up?
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:And I won't. We live in a free 'country' with rights of free speak so...
Free speech doesn't apply with private forums. What can and can't be said here is up to Orudge.

webfreakz.nl wrote:Let Tron first be active at the forum and then we'll talk later...
Once you are active in the development of OpenTTD you can complain about its slow pace until then: don't.
Image
Get Skype and call me for free.
User avatar
webfreakz.nl
Director
Director
Posts: 627
Joined: 11 Aug 2005 08:22
Location: Localhost, 127.0.0.1, [The Netherlands: South Holland-> Westland]
Contact:

Post by webfreakz.nl »

matthijs wrote:
webfreakz.nl wrote: Let Tron first be active at the forum and then we'll talk later...
Sorry to say, but OpenTTD development happens on IRC mainly, the forums are secondary. So, good you showed up on IRC, webfreakz.
richk67 wrote: You can then search for all bits marked "kludge" to correct them in the future.
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...

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 :-)
The problem with IRC is nothing gets logged to the outside world, you can't read stuff said last week.
# Programming is like sex, one mistake and you have to support it for the rest of your life. (Michael Sinz)
DeletedUser21
Tycoon
Tycoon
Posts: 11501
Joined: 20 Sep 2004 22:45

Post by DeletedUser21 »

Maybe development is slow ATM, but ordering people around doesn't make it go faster. (ATM :P )
Post Reply

Return to “OpenTTD Development”

Who is online

Users browsing this forum: Amazon [Bot] and 22 guests