Skip to content

Commit

Permalink
ecere/Color editor: Patched active vs inactive y offset drawing glitc…
Browse files Browse the repository at this point in the history
…h (Did it break anything?)
  • Loading branch information
jerstlouis committed Aug 24, 2011
1 parent 71002de commit 6f89116
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion ecere/src/gfx/Color.ec
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,11 @@ public:
char tempString[1024] = "";
bool needClass = false;
// TODO: This isn't an ideal way of obtaining the clipped height, will fail on hidden areas
int yOffset = (1+surface.box.bottom - surface.box.top - 17)/2;
// This doesn't seem to help anymore?
// - Makes SavingDataBox draw at 2 different spots depending if active or not.
// - Color property in IDE is fine as well
// - How is it on Linux?
int yOffset = 0;//(1+surface.box.bottom - surface.box.top - 17)/2;
char * string = OnGetString(tempString, null, &needClass);
surface.WriteTextDots(alignment, x + 24, y + 1, width - 24, string, strlen(string));

Expand Down

0 comments on commit 6f89116

Please sign in to comment.