Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
L
libSDL
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
PocketInsanity
libSDL
Commits
43cd4e54
Commit
43cd4e54
authored
Aug 12, 2010
by
Jjgod Jiang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix for deleting the last uncommit character
parent
819cc951
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
4 deletions
+8
-4
SDL_cocoakeyboard.m
src/video/cocoa/SDL_cocoakeyboard.m
+2
-0
testime.c
test/testime.c
+6
-4
No files found.
src/video/cocoa/SDL_cocoakeyboard.m
View file @
43cd4e54
...
@@ -144,6 +144,8 @@
...
@@ -144,6 +144,8 @@
{
{
[
_markedText
release
];
[
_markedText
release
];
_markedText
=
nil
;
_markedText
=
nil
;
SDL_SendEditingText
(
""
,
0
,
0
);
}
}
-
(
NSRect
)
firstRectForCharacterRange
:
(
NSRange
)
theRange
-
(
NSRect
)
firstRectForCharacterRange
:
(
NSRange
)
theRange
...
...
test/testime.c
View file @
43cd4e54
...
@@ -136,11 +136,13 @@ static void RenderText(SDL_Surface *sur,
...
@@ -136,11 +136,13 @@ static void RenderText(SDL_Surface *sur,
int
x
,
int
y
,
int
x
,
int
y
,
SDL_Color
color
)
SDL_Color
color
)
{
{
SDL_Surface
*
textSur
=
TTF_RenderUTF8_Blended
(
font
,
text
,
color
);
if
(
text
&&
strlen
(
text
))
{
SDL_Rect
dest
=
{
x
,
y
,
textSur
->
w
,
textSur
->
h
};
SDL_Surface
*
textSur
=
TTF_RenderUTF8_Blended
(
font
,
text
,
color
);
SDL_Rect
dest
=
{
x
,
y
,
textSur
->
w
,
textSur
->
h
};
SDL_BlitSurface
(
textSur
,
NULL
,
sur
,
&
dest
);
SDL_BlitSurface
(
textSur
,
NULL
,
sur
,
&
dest
);
SDL_FreeSurface
(
textSur
);
SDL_FreeSurface
(
textSur
);
}
}
}
#endif
#endif
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment