forked from netshade/Cocoa-Touch-Barcodes
-
Notifications
You must be signed in to change notification settings - Fork 0
/
NKDPlanetBarcode.m
22 lines (20 loc) · 1.06 KB
/
NKDPlanetBarcode.m
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
// -----------------------------------------------------------------------------------
// NKDPlanetBarcode.m
// -----------------------------------------------------------------------------------
// Created by Jeff LaMarche on Sun May 05 2002.
// ©2002 Naked Software. All rights reserved.
// -----------------------------------------------------------------------------------
// THIS SOURCE CODE IS PROVIDED AS-IS WITH NO WARRANTY OF ANY KIND
// -----------------------------------------------------------------------------------
// You may use and redistribute this source code without limitation
// -----------------------------------------------------------------------------------
#import "NKDPlanetBarcode.h"
@implementation NKDPlanetBarcode
// -----------------------------------------------------------------------------------
-(float)_heightForDigit:(int)index
andBar:(int)bar
// -----------------------------------------------------------------------------------
{
return ([super _heightForDigit:index andBar:bar] == TALL_BAR) ? SHORT_BAR : TALL_BAR;
}
@end